当我尝试从 XAMPP 运行 phpMyAdmin 时出现此错误。在我安装和运行 XAMPP 之前,这台机器上有一个现有的 mysql 安装。当我启动 XAMPP 时,mysql 和 apache2 都成功启动。我可以使用 PHP 脚本访问 mysql 数据库,但不能通过 phpmyadmin。
Error
MySQL said: Documentation
#1045 - Access denied for user 'root'@'localhost' (using password: NO)
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.