LoginSignup
0
1

More than 5 years have passed since last update.

mysqlが起動しない。ERROR! The server quit without updating PID file の対処

Posted at

参考:
http://mnmandahalf.hatenablog.com/entry/2017/10/03/002827
https://qiita.com/kanohisa/items/564035efd74d9c75bdcb

エラー内容

$ mysql.server start

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

状況

・ mysqlやhomebrewをuninstall/install しても治らなかった
・ local.pid ファイルをtouchで作成しても、mysqlを起動させたら消える
・ local.pidやlocal.errにchownでユーザーネームやmysqlの権限を与えても治らなかった

対処メモ

手動でmysql.sockを作成する必要があった

$ sudo touch /var/lib/mysql/mysql.sock
$ sudo chown mysql:mysql /var/lib/mysql/mysql.sock
0
1
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
1