Не удается получить доступ к Phpmyadmin в ошибке Ubuntu mysqli_real_connect (): (HY000 / 2002) - PullRequest
0 голосов
/ 02 мая 2020

Я пытался получить доступ к 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

кто-нибудь знает как это исправить?

1 Ответ

0 голосов
/ 02 мая 2020
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)

Возможно, у вас неправильные права доступа / владельца для временной папки. Попробуйте эти команды в вашей оболочке:

chmod 777 /opt/lampp/temp
chown -R 33:33 /opt/lampp/temp
...