LoginSignup
1

More than 5 years have passed since last update.

mysqlが起動できない

Posted at

mysql関連でよくerrorになるのでメモ。
今回のerrorは

「The server quit without updating PID file」

原因は不明。昨日まで動いてたのに!

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

権限を正しく直せば良いとのことなので

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

最後にmysqlを再起動しましょう

$sudo mysql.server start
Starting MySQL
. SUCCESS!

これで起動できるようになりました。

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
1