I've just tried installing MySQL using homebrew (on Mac OS X 10.6), but I've run across an issue at the first hurdle. When trying to manually start the server (mysql.server start), I get the following error:
. ERROR! Manager of pid-file quit without updating file.
Unfortunately I'm not sure of which error logs or configuration files to check, as I've never installed MySQL in this way before.
Nothing else really helped, but the following worked:
These following two commands should solve your issue.
you probably need to ensure that you're running mysql as the
root
user -- otherwise it won't have permission to write the PID file (thus the error you're receiving).Try this:
you'll be prompted for your password. (this assumes that your user account has permissions to "sudo" -- which it should, unless it's setup as a restricted user account in OS X).
This may not be the only issue -- but it should get you to the next step anyway.
good luck!
It appears that for whatever reason I can't comment below Immendes above, but on 10.8.2 with mySQL 5.6.10, in addition to verifying the db_install and adding the my.cnf, I also had to chown -R myusername /tmp/mysql.sock.
It appears that allowing mySQL to run under the user (as apposed to root or www as I woudl do on linux) is not the best idea in this regard (though Homebrew could update the formula -- beyond my scope and time).
I ran into the same issue while trying to install MySQL 5.5.15 in Lion using homebrew and resolved the issue with:
and creating a the file ~/my.cnf
with the content:
basedir - should be your current MySQL instalation dir datadir - should be the location of MySQL data
You can figure out that too location by watching the make command during the "brew install mysql" searching for something like this:
Where DCMAKE_INSTALL_PREFIX = basedir and DMYSQL_DATADIR = datadir
I ran into this same problem when installing via homebrew. Make sure you run these commands (which are listed during install but easy to miss):