Home  >  Article  >  Database  >  phpMyAdmin无法登陆MySQL解决一例

phpMyAdmin无法登陆MySQL解决一例

WBOY
WBOYOriginal
2016-06-07 16:55:591469browse

欢迎使用 phpMyAdmin 2.7.0-pl1phpMyAdmin 试图连接到 MySQL 服务器,但服务器拒绝连接。您应该检查 config.inc.php 中的主机、用

欢迎使用 phpMyAdmin 2.7.0-pl1

phpMyAdmin 试图连接到 MySQL 服务器,但服务器拒绝连接。您应该检查 config.inc.php 中的主机、用户名和密码,并且确定这些信息与 MySQL 服务器的管理员所给出的信息一致。

错误

MySQL 返回:

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

到WWW的文件夹下面,找到

config.inc.php文件中这一行

Authentication method (config, http or cookie based)?

$cfg['Servers'][$i]['user']          = 'root';      // MySQL user

$cfg['Servers'][$i]['password']      = 'sa';

把'sa'改为你自己的密码

linux

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