Home  >  Article  >  Backend Development  >  phpMyAdmin不能连接到mysql上,该怎么解决

phpMyAdmin不能连接到mysql上,该怎么解决

WBOY
WBOYOriginal
2016-06-13 11:49:111056browse

phpMyAdmin不能连接到mysql上
错误
MySQL 返回: 

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

phpMyAdmin 尝试连接到 MySQL 服务器,但服务器拒绝连接。您应该检查配置文件中的主机、用户名和密码,并确认这些信息与 MySQL 服务器管理员所给出的信息一致。
 

用的软件是wampserver2.1,安装好后运行phpAdmin就出现以上错误,根据网上的一些方法修改mysql的密码也不能解决,修改配置文件也无效。谁有较好的方法,还望指教一下!
------解决方案--------------------
配置文件设定MySQL 默认权限账户( root没有密码)不对应造成的。
修改config.inc.php文件,然后再上传。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn