If you use XAMPP, can happen to you the problem of MySQL does not start. This usually happens when we copy the XAMPP folder between computers or even when repomos a copy of the folder entirely.
Here I present to you the possible solutions to resolve this berbicacho. Try one at a time in the order shown and only pass the following case does not get resolved.
1st.
sudo chmod 755 /opt /lampp/etc/my.cnf
2nd.
sudo chmod -R 777 /opt/lampp/var/mysql
3rd.
chown -hR root /opt/lampp
文章摘自:http://adventux.blogspot.pt/2012/11/xampp-couldnt-start-mysql.html