我刚在我的manjaro(一个archlinux发行版)上安装了xampp,但我无法使用phpmyadmin,因为mysql似乎没有回应。
当我使用sudo xampp start
输出如下:xampp cannont使用phpmyadmin(mysql错误)
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
但是,试图利用sudo xampp restart
重新启动它时,它显示:
XAMPP: Stopping Apache...ok.
XAMPP: Stopping MySQL...not running.
XAMPP: Stopping ProFTPD...ok.
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
当连接到http://localhost/phpmyadmin/一个值得欢迎的显示,但我做得到4错误显示顺序如下:
\#2002 - No such file or directory — The server is not responding (or the local server's socket is not correctly configured).
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
经过研究,我注意到我错过了/opt/lampp/var/mysql/mysql.sock
文件,但我不知道如何创建和配置它。
我也tryed使用mysqld
在一些教程见过,但得到这些错误:
2017-04-14 12:41:29 140391574202432 [Note] mysqld (mysqld 10.1.22-MariaDB) starting as process 4483 ...
2017-04-14 12:41:29 140391574202432 [ERROR] mysqld: File './mysql-bin.index' not found (Errcode: 13 "Permission denied")
2017-04-14 12:41:29 140391574202432 [ERROR] Aborting