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/? – quanta Nov 24 '11 at 2:35drwxr-xr-x 13 _mysql wheel 442 Nov 24 09:04 mysql/data/– James Barnhill Nov 24 '11 at 15:11ls -ld /usr/local/mysql-5.5.18-osx10.6-x86_64/? – slillibri Dec 5 '11 at 1:27_mysqlhasxpermissions to/usr/local/mysql-5.5.18-osx10.6-x86_64/, not just/usr/local/mysqlas 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). – slillibri Dec 5 '11 at 1:54sudo chmod -R 0771 /usr/local/mysql-*, giving/usr/local/mysql-5.5.18-osx10.6-x86_64/the permissionsdrwxrwx--x 18 _mysql wheel. – James Barnhill Dec 5 '11 at 8:09