0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

MySQL で The server quit without updating PID file というエラーが出た時

Posted at

mysqlが起動しない

mysqlを起動しようとコマンドを打ったところ、エラーが発生した。

$ sudo mysql.server start
Starting MySQL
.. ERROR! The server quit without updating PID file (/usr/local/var/mysql/****.local.pid).

原因

エラーログを確認。

$ sudo tail -f /usr/local/var/mysql/****.local.err | grep ERROR 
2019-12-31T18:01:14.011891Z 0 [ERROR] [MY-010274] [Server] Could not open unix socket lock file /tmp/mysql.sock.lock.

解決

lock fileを削除。

$ sudo rm -rf /tmp/mysql.sock.lock

その後起動すると...

$ sudo mysql.server start
Starting MySQL
.. SUCCESS! 

起動できました!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?