phpmyadmin提示mysqli_real_connect(): (HY000/2002): No such file or directory错误的解决办法

2017-12-04 13:56:47 phpmyadmin HY000 directory 错误 2002
30210
phpmyadmin上传到网站目录后提示解决phpmyadmin mysqli_real_connect(): (HY000/2002): No such file or directory的错误,解决方法把phpmyadmin目录中的配置文件config.sample.inc.php改成config.inc.php
打开编辑config.inc.php
找到:
$cfg['Servers'][$i]['host'] = 'localhost';
改成:
$cfg['Servers'][$i]['host'] = '127.0.0.1';
再次刷新页面就不会出现mysqli_real_connect(): (HY000/2002): No such file or directory的错误提示了。
喜欢0 评分0
上一条 下一条
我的签名我做主:聚推宝网  时尚路人网
游客