phpMyAdmin 访问被拒绝
phpMyAdmin access denied
我正在使用 wamp 服务器,我的 phpMyAdmin 页面返回了以下错误。
Wamp server version:2.2 MySQL version:5.5.24
#1045 - Access denied for user 'root'@'localhost' (using password: YES)
我编辑了我的配置文件,wamp\apps\phpmyadmin4.1.14\config.inc.php 到:
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
但是并没有解决问题。任何帮助将不胜感激。
在你的 phpmyadmin 中试试这个 config.inc.php :-
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
我正在使用 wamp 服务器,我的 phpMyAdmin 页面返回了以下错误。
Wamp server version:2.2 MySQL version:5.5.24
#1045 - Access denied for user 'root'@'localhost' (using password: YES)
我编辑了我的配置文件,wamp\apps\phpmyadmin4.1.14\config.inc.php 到:
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
但是并没有解决问题。任何帮助将不胜感激。
在你的 phpmyadmin 中试试这个 config.inc.php :-
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['AllowNoPassword'] = true;