phpMyAdmin无法连接MySQL怎么办

phpMyAdmin无法连接MySQL怎么办

phpmyadmin无法连接mysql怎么办

phpMyAdmin无法连接MySQL怎么办

解决方案:

1、首先我们进入phpmyadmin的目录,看有没有配置文件config.inc.php,如果没有把config.sample.inc.php复制重命名为config.inc.php;

2、然后打开配置文件,搜索localhost,找到$cfg[‘Servers’][$i][‘host’] = ‘localhost;

立即学习PHP免费学习笔记(深入)”;

3、把localhost修改为127.0.0.1;

$cfg['Servers'][$i]['host'] = 'localhost';

修改为:

$cfg['Servers'][$i]['host'] = '127.0.0.1';

PHP中文网,大量MySQL视频教程,欢迎学习!

© 版权声明
THE END
喜欢就支持一下吧
点赞6 分享