Run $mysql.server start
to start MySQL.
ERROR! The server quit without updating PID file (/usr/local/var/mysql/<MacName>.pid).
I can't do it because of the error
If you look at the log, it says Permission denied
, so
sudo chown-R_mysql:_mysql/usr/local/var/mysql
The result was the same when I set the permissions to mysql in .
First of all, I tried everything that comes out.
Log Error ↓
/usr/local/Cellar/mysql/5.7.21/bin/mysqld_safe: line 144:/usr/local/var/mysql/<MacName>.local.err: Permission denied
/usr/local/Cellar/mysql/5.7.21/bin/mysqld_safe: line 144:/usr/local/var/mysql/<MacName>.local.err: Permission denied
/usr/local/Cellar/mysql/5.7.21/bin/mysqld_safe:line198:/usr/local/var/mysql/<MacName>.local.err:Permission denied
/usr/local/Cellar/mysql/5.7.21/bin/mysqld_safe: line 144:/usr/local/var/mysql/<MacName>.local.err: Permission denied
Have you tried the method described in The server quit without updating PID file that is no longer able to launch MySQL?
If this doesn't work, I don't know.
© 2024 OneMinuteCode. All rights reserved.