Page 1 of 1

mySQL does not start

PostPosted: 24. December 2009 09:37
by windom
Hi,

I messed with /opt/lampp folder permissions a bit and mySQL does not start anymore. What folders need what permissions/ownership for it to work properly? And/or how could I get more informative error message instead of "Could not start mySQL!"? Thanks in advance!

Re: mySQL does not start

PostPosted: 28. December 2009 21:24
by glitzi85
If you just messed up the owner, then this should help:
Code: Select all
chown -R nobody:root /opt/lampp/var/mysql

if the permissions are also wrong, use those three commands:
Code: Select all
chmod 775 /opt/lampp/var/mysql
find /opt/lampp/var/mysql/ -type d -exec chmod 700 {} \;
find /opt/lampp/var/mysql/ -type f -exec chmod 660 {} \;

glitzi