Usually MacPorts does everything you need if you want to install something on your mac:
should be everything you need.
But when I started mysql with:
A ridiculous error appeared:
I have found an excellent blog post (meanwhile GONE), which helped me to find the error. I made an output of the data dir in the shell file, as he did, and found out on the mac the dir is:
Since it didn’t exist, I created it. Now MySql wrote an log file. But the error did no go. I have tried to copy that:
and override the data dir setting in the my.cnf file, but it seems this file is ignored. Even
However, through this config file and the log I was able to figure out that MySql is claiming about a missing socket file. The server expected it at:
I created this directory too, and then - surprise - MySql came up. Not very comfortable. And I really hate it when my /etc/my.cnf is ignored. If you know, why please send me a comment. Sometime I feel the pain of the sys admins out there. What a nice life we programmers have.
Please note one thing, if your permissions are not correct, you’ll have the same error. Please make sure your user (in my case mysql) is having proper access rights.