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/
I found the answer. First completly uninstall the lampp and then reinstall it. Before uninstalling, stop the lampp using the command:
/opt/lampp/lampp stop
and then uninstall/remove it using the command
rm -rf /opt/lampp
then reinstall it.
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
Even I had the same issue. Always check for the error log before proceeding to find the root cause. Sometimes it could be file system space issue. In my case it was "/" file system was full. After clearing some space I was able to start the services without issues.
Thanks, Vishnu