显示:

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

原因:

可能是修改了MySQL的密码所致。

解决办法:

1.修改phpmyadmin 下的config.inc.php中的 \$cfg['Servers'][\$i]['password'] = '';修改密码对应的值;

2.修改\$cfg['Servers'][\$i]['auth_type'] = 'http'; //修改为http

当然,到了这里也许还是会出错,因为这是IE缓存所致,选择IE Internet选项->常规-》清除浏览记录,清除缓存后解决问题。

 

以下是config.inc.php中有关数据库配置的配置信息:

在phpmyadmin目录中有个config.inc.php,你可以用编辑软件打开它,然后在

/* Authentication type and info */这句下面的
\$cfg['Servers'][\$i]['auth_type'] = 'config';
\$cfg['Servers'][\$i]['user'] = 'root';
\$cfg['Servers'][\$i]['password'] = '*************';    //数据库密码
\$cfg['Servers'][\$i]['extension'] = 'mysqli';

相关文章:

  • 2021-09-23
  • 2021-11-05
  • 2021-10-01
  • 2022-12-23
  • 2021-12-24
  • 2022-01-05
  • 2022-01-09
猜你喜欢
  • 2022-02-14
  • 2021-06-29
  • 2022-12-23
  • 2021-06-18
  • 2021-08-19
  • 2022-01-01
  • 2021-05-02
相关资源
相似解决方案