Home > Database > Mysql Tutorial > phpMyAdmin 试图连接到 MySQL 服务器,但服务器拒绝连接。您应该_MySQL

phpMyAdmin 试图连接到 MySQL 服务器,但服务器拒绝连接。您应该_MySQL

WBOY
Release: 2016-05-31 08:49:46
Original
1031 people have browsed it

phpmyadmin

phpMyAdmin开始能打开,但是我在权限里把root的密码改了,再打开phpMyAdmin就显示:“phpMyAdmin 试图连接到 MySQL 服务器,但服务器拒绝连接。您应该检查 config.inc.php 中的主机、用户名和密码,并且确定这些信息与 MySQL 服务器的管理员所给出的信息一致。”,奇怪的是我把config.inc.php里的$cfg['Servers'][$i]['password']项里已经填上密码了呀,为什么还是不行呢?

解决办法:

清空一下浏览器缓存

或者

在phpmyadmin的目录下改下config.inc.php里的:$cfg['Servers'][$i]['auth_type']     = 'config'; 改为:$cfg['Servers'][$i]['auth_type']     = 'http';

就可以了...


source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template