【发布时间】:2015-11-06 18:31:08
【问题描述】:
所以我在运行 Ubuntu 14.04LTS 的 Linux 机器上安装了 xampp。现在突然发现,当我尝试连接到 phpmyadmin 时,它拒绝连接。我也已经单独安装了mysql,但它似乎不起作用。有什么解决方法吗?
我得到的错误是:
MySQL said:
Cannot connect: invalid settings.
Connection for controluser as defined in your configuration failed.
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 客户端进行连接?你configure host, port, login and password in phpmyadmin了吗?
-
2 个 MYSQL 服务器不会在同一个端口(通常是 3306)上运行,因此您可能会连接到您的用户 ID 不存在或有另一个密码的其他 MySQL 服务器
-
为我工作@RiggsFolly