I've been trying to install MySQL 5.7 on OS X El Capitan using Homebrew, however when it came to getting the server up and running, I cannot seem to get a lock file created.
When I run mysqld_safe
, it logs errors to a file and the only relevant message that I saw was this:
2015-12-13T19:48:09.270970Z 0 [ERROR] Could not create unix socket lock file /var/lib/mysql/mysql.sock.lock.
Looking at the configuration, if I run mysql_config | grep -- --socket
, I see this:
--socket [/tmp/mysql.sock]
It seems that the socket is getting created for a split second, but if it tries to make the lock file, it aborts. What is going on?