ERROR! The server quit without updating PID file &

2019-07-14 20:57发布

After install, run fine mysql and restart my mac, i get this error, when i call this command line:

sudo /usr/local/mysql/support-files/mysql.server start

Hier the error:

ERROR! The server quit without updating PID file (/usr/local/mysql/data/Mac.local.pid).

And when i try to connect me to mysql -u root -p, this error:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

I try the solution in this link MySQL does not start when upgrading OSX to Yosemite or El Capitan, but nothing. I also try to change the owner of the mysql folder with:

sudo chown -R _mysql:_mysql /usr/local/mysql/

But nothing.

Any ideas?

Thank

1条回答
在下西门庆
2楼-- · 2019-07-14 21:17

start your mysql in safe_mode.its working for me. hope it would work also for you

/usr/local/mysql/bin/mysqld_safe start
查看更多
登录 后发表回答