我正在使用Windows Server 2012并试图让PHPMyAdmin工作。我不能让它通过root用户或非root用户连接到MySQL。我搜索和搜索了谷歌。到处都是我看到它说要在config.inc.php文件中设置allowroot并将localhost更改为127.0.0.1。起初我找不到这个文件,但后来我看到你必须改变config.default.php并将它放在根文件夹中。我做到了。这里是我改变#2002无法登录到MySQL服务器
$cfg['Servers'][$i]['host'] = "127.0.0.1"
//already had the next one set
$cfg['Servers'][$i]['AllowRoot'] = true
我仍然无法得到它从MySQL的任何用户登录,我不断收到错误
#2002 Cannot log in to the MySQL server.
的config.inc.php:http://u16626886.onlinehome-server.com/config.inc.zip
测试PHP和MySQL:http://u16626886.onlinehome-server.com:801/test.php
我想出了问题,现在只需要解决它。如果我把MySQL放在C盘上,它可以正常工作,但是如果我把它放在D盘上,这是我想要的地方,PHP就无法连接到它。有谁知道这是为什么?
它是否修复?你怎么修好它的 ? –