Liunx上的XAMPP一个启动错误的解决

前两天尝试在自己的Ubuntu11.10上安装XAMPP(LAMPP),解压完成后,进入 /opt/lampp 执行:

./start.sh start

,信息信息如下:

s@s-book:/opt/lampp$ sudo ./start.sh stop
Starting XAMPP for Linux 1.7.1...
XAMPP: XAMPP-Apache is already running.
XAMPP: Starting MySQL...
XAMPP: Couldn't start MySQL!
XAMPP: XAMPP-ProFTPD is already running.
XAMPP for Linux started.

 数据库启动失败!

进入到/opt/lampp/bin 目录下执行:

s@s-book:/opt/lampp/share/mysql$ ./mysql.server start
Starting MySQL
. * Manager of pid-file quit without updating file.

 根据该信息到网络上搜了一把,很多人讲了很多种办法,试了几种都不行,最后根据老外的一个帖子,执行了一下:

sudo chmod -R 777 /opt/lampp

 ,再启动,提示信息如下:

s@s-book:/opt/lampp$ sudo ./start.sh start
Starting XAMPP for Linux 1.7.1...
XAMPP: XAMPP-Apache is already running.
XAMPP: XAMPP-MySQL is already running.
XAMPP: XAMPP-ProFTPD is already running.
XAMPP for Linux started.

 问题解决!

老外的帖子在这里:

http://www.compdigitec.com/labs/2009/05/30/solving-xampp-couldnt-start-mysql/

 

 

你可能感兴趣的:(liunx)