![](/img/trans.png)
[英]mysqli_real_connect(): (HY000/2002): No such file or directory
[英]Can't access Phpmyadmin in ubuntu error mysqli_real_connect(): (HY000/2002)
我试图访问 phpmyadmin 但是这件事发生了
MySQL said: Documentation
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.
apache 和 mysql 正在运行,我的网站出现这样的错误
Warning: session_start(): open(/opt/lampp/temp//sess_ku01nv1mbiroo8btvpbqjv47f7, O_RDWR) failed: Permission denied (13) in /opt/lampp/htdocs/sisfo/index.php on line 2
有谁知道如何解决这一问题?
mysqli_real_connect(): (HY000/2002): No such file or directory
似乎 phpmyadmin 尝试连接到 mysql 套接字(不存在?)。 您可以尝试将config.inc.php
中的主机从localhost
更改为127.0.0.1
。
Warning: session_start(): open(...) failed: Permission denied (13)
您可能对临时文件夹有错误的权限/所有权。 在 shell 中尝试以下命令:
chmod 777 /opt/lampp/temp
chown -R 33:33 /opt/lampp/temp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.