我三天前下载了 XAMPP,但在尝试打开 phpmyadmin 时我一直收到此错误。
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
我什至没有设置密码,因为我无法打开安全页面,我一直收到找不到页面错误。
我该如何解决这个问题?
最佳答案
首先,尝试通过命令行连接MySQL,验证MySQL服务器是否正在运行,用户密码是否正确
mysql -u USERNAME -p PASSWORD
如果可以成功连接到服务器,请转到 phpmyadmin 配置文件
并更改您的连接字符串配置。
看这个:http://docs.phpmyadmin.net/en/latest/setup.html
但是如果你不能连接到 MySQL 服务器,你的问题是你的服务器不是 phpmyadmin。因此,转到您的 xampp 控制面板并配置服务器配置文件。
关于php - 无法打开 phpMyAdmin (Windows),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33602149/