February 28, 2010 | 11 Comments
I switched my dev. environnement at work from MAMP to Zend Server Community Edition a while ago but was disappointed that my Mac Book could not migrate because of a MySql error. Every time I would try to run the server, I would get the following error:
ERROR! MySQL PID file could not be found!
Googling this error, all kinds of solutions came up: privileges on the files, misconfiguration issues, installation problems…
It seems to be a generic message. After trying to understand what might have happened to the missing PID file, I tried re-installations and all the common MySql on Mac OS X tips I could find on Google. No luck. At least, MAMP worked.
Eventually, the same error occured on alheim‘s computer. He eventually found a solution which worked for him (SnowLeopard running on Mac Book Pro) for my own laptop as well (Snow Leopard on a black MacBook).
So here are the steps we took:
sudo chown -R zend:wheel data
sudo bin/zendctl.sh start-mysql
Hopefully, you’ll get a “SUCCCESS” message, too. Thanks to Alheim for the tip.