原来使用appserv自带的phpmyadmin,现在mysql,php的版本都被我升级了,顺便也把phpmyadmin也升级了吧,看了网上的一些配置phpmyadmin的文章,在自己机器上配了半天还是不成功,提示用户不能被验证通过。
下面把我最后成功连接的配置记录一下,以备后用。从上面下载了phpMyAdmin-2.10.1-all-languages。解压缩到网页目录下,把文件夹名字改成phpMyAdmin,将libraries下面的config.default.php拷贝到phpmyadmin文件夹下,并改名为config.inc.php。打开config.inc.php文件。做以下改动:
$cfg['PmaAbsoluteUri'] = '';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['ssl'] = false;
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli'; //我使用的mysqli连接
$cfg['Servers'][$i]['compress'] = FALSE;
$cfg['Servers'][$i]['controluser'] = '';
$cfg['Servers'][$i]['controlpass'] = '';
$cfg['Servers'][$i]['auth_type'] = 'http';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
配置完成,打开ie,输入: 回车,
连接成功!
阅读(2418) | 评论(0) | 转发(0) |