I have just installed MySQL on macOS 10.6, and it will not launch. When I launch it the traditional way, I get the following:
Starting MySQL........
ERROR! The server quit without updating PID file (/usr/local/mysql/data/user.local.pid).
I followed some other instructions online and deleted my custom my.cnf file and executed this command:
sudo chown -R _mysql:_mysql /usr/local/mysql/
Then tried to launch it in safe mode, to which I received the following list of errors:
160414 12:48:18 mysqld_safe Logging to '/usr/local/mysql/data/user.local.err'.
touch: /usr/local/mysql/data/user.local.err: Permission denied
160414 12:48:18 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
/usr/local/mysql/bin/mysqld_safe: line 129: /usr/local/mysql/data/user.local.err: Permission denied
/usr/local/mysql/bin/mysqld_safe: line 166: /usr/local/mysql/data/user.local.err: Permission denied
160414 12:48:18 mysqld_safe mysqld from pid file /usr/local/mysql/data/user.local.pid ended
/usr/local/mysql/bin/mysqld_safe: line 129: /usr/local/mysql/data/user.local.err: Permission denied
How can I get it working?