The MySQL server won't start and is reporting the following error:
/usr/local/mysql/bin/mysqld: Can't create/write to file '/usr/local/mysql/data/James-Barnhills-Mac-Pro.local.pid' (Errcode: 13)
Can't start server: can't create PID file: Permission denied
All the permissions are set recursively as:
lrwxr-xr-x 1 _mysql wheel 27 Nov 22 09:25 mysql -> mysql-5.5.18-osx10.6-x86_64
but it won't start. I've tried reinstalling several times to no avail.
I'm running as root on Mac OS, and MySQL has read, write, and execute permissions on the "data" folder.
ls -ld /usr/local/mysql/data/
?drwxr-xr-x 13 _mysql wheel 442 Nov 24 09:04 mysql/data/
ls -ld /usr/local/mysql-5.5.18-osx10.6-x86_64/
?_mysql
hasx
permissions to/usr/local/mysql-5.5.18-osx10.6-x86_64/
, not just/usr/local/mysql
as that is just a symlink. If youchmod +x /usr/local/mysql-5.5.18-osx10.6-x86_64/
it should start (at least that would match the working perms on my MBP).sudo chmod -R 0771 /usr/local/mysql-*
, giving/usr/local/mysql-5.5.18-osx10.6-x86_64/
the permissionsdrwxrwx--x 18 _mysql wheel
.