wamp中的phpmyadmin打开出现:#1045 - Access denied for user 'root'@'localhost' (using password: NO)

详细内容:

MySQL said:

#1045 - Access denied for user 'root'@'localhost' (using password: NO)

phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

根据提示是指没有设置root密码,可以通过修改phpmyadmin配置文件解决。

打开config.inc.php可以看到:

$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';

这里把你的Mysql密码写进去,重新打开浏览器,输入地址就行啦。

上一篇:【CSS3】---练习制作导航菜单


下一篇:layer框架 jquery获取父页面open打开的子页面获取子页面的输入值与执行子页面方法