XAMPP: Couldn’t start MySQL!解决方案

将xampp在centos下铐至/opt/lampp目录下时,/opt/lampp/lampp start启动时,出现如下问题:
XAMPP: SELinux is activated. Making XAMPP fit SELinux…
Starting XAMPP for Linux 1.7.1…
XAMPP: Starting Apache with SSL (and PHP5)…
XAMPP: Starting MySQL…
XAMPP: Couldn’t start MySQL!
XAMPP: Starting ProFTPD…
XAMPP for Linux started.

先 用下面的命令修改:

先关掉SElinux,然后再进行如下操作:
#chown -hR root /opt/lampp将xampp在centos下铐至/opt/lampp目录下时,/opt/lampp/lampp start启动时,出现如下问题:
XAMPP: SELinux is activated. Making XAMPP fit SELinux…
Starting XAMPP for Linux 1.7.1…
XAMPP: Starting Apache with SSL (and PHP5)…
XAMPP: Starting MySQL…
XAMPP: Couldn’t start MySQL!
XAMPP: Starting ProFTPD…
XAMPP for Linux started.

先用下面的命令修改:

先关掉SElinux,然后再进行如下操作:
#chown -hR root /opt/lampp
# /opt/lampp/lampp start
# chmod 777 -R /opt/lampp/var

但又出现问题:
XAMPP: Starting MySQL…
Warning: World-writable config file ‘/opt/lampp/etc/my.cnf’ is ignored
Warning: World-writable config file ‘/opt/lampp/etc/my.cnf’ is ignored

最 后又用如下命令,解决:
#cd /opt/lampp/etc
#chmod 755 my.cnf

重启后正 常!

留下评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注

+ 66 = 76