MySQL can't start

Asked 1 years ago, Updated 1 years ago, 82 views

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.

Add

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

mysql macos

2022-09-30 21:31

2 Answers

Have you tried the method described in The server quit without updating PID file that is no longer able to launch MySQL?


2022-09-30 21:31

If this doesn't work, I don't know.


2022-09-30 21:31

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.