Couldn't start MySQL! while starting XAMPP

问题

$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 1.8.0...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Couldn't start MySQL!
XAMPP: Starting ProFTPD...
XAMPP for Linux started.


卸载了Xampp重新安装的时候Xampp没有被赋予正确的权限因此错误所以无法启动,以下是解决办法

sudo chmod 755 /opt/lampp/etc/my.cnf
sudo chmod -R 777 /opt/lampp/var/mysql
sudo chown -hR root:root /opt/lampp


 

你可能感兴趣的:(卸载重新安装错误)