我在我的机器上安装了 xampp。一切正常,但 phpmyadmin 没有打开。它列出了许多错误,如图所示
MySQL said:
Cannot connect: invalid settings.
mysqli_real_connect(): (HY000/2002): No such file or directory
Connection for controluser as defined in your configuration failed.
mysqli_real_connect(): (HY000/2002): No such file or directory
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.
我尝试编辑用户名和密码以及主机地址,config.inc.php
但没有任何帮助。
有人能给我指点一下这里的灯光吗?
答案1
您可能错误配置了 PHPMyAdmin。
您可以使用 重新配置它sudo dpkg-reconfigure phpmyadmin
。