Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Couldn't start MySQL! while starting XAMPP

I am new in Ubuntu, I installed XAMPP in my Ubuntu 10.04. When I start XAMPP it says MySQL couldn't start.

Here is my terminal ouput:

$ 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.

And then as I go to http://localhost, I got stuck on the XAMPP splash-screen, nothing happens if I choose language.

like image 491
aksankar Avatar asked Sep 20 '12 06:09

aksankar


3 Answers

This Worked For me as a Charm. [I used Ubuntu 12.04 and Xampp]

sudo chmod 755 /opt/lampp/etc/my.cnf

sudo chmod -R 777 /opt/lampp/var/mysql

sudo chown -hR root:root /opt/lampp

& Now Start Your Xampp

like image 170
Samrat Saha Avatar answered Oct 29 '22 11:10

Samrat Saha


It might just be that the /opt/lampp doesn't have the right permissions. Before reinstalling everything, try running the commands below, it worked for me:

sudo /opt/lampp/lampp stop
sudo chmod 755 /opt/lampp/etc/my.cnf
sudo chmod -R 777 /opt/lampp/var/mysql
sudo chown -hR root:root /opt/lampp
sudo /opt/lampp/lampp start
like image 37
laurent Avatar answered Oct 29 '22 10:10

laurent


Just remove the version where the MySQL is not started with the command rm -rf /opt/lampp and the command:

tar xvfz xampp-linux-1.8.1.tar.gz -C /opt

Replace xampp-linux-1.8.1.tar.gz with your file name. After restarting your lampp, it will work fine.

like image 37
ingscam Avatar answered Oct 29 '22 09:10

ingscam