LoginSignup
4
1

More than 3 years have passed since last update.

MySQLが起動しないエラー

Last updated at Posted at 2019-11-21

発生した問題

MySQLクライアントのSequel Proが起動しなくなった。

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

環境

  • macOS Catalina 10.15.1
  • MySQL 5.7.23

解決法

mysqlの動いているプロセスを探して

ps aux | grep mysql

対象のプロセスをkillする

sudo kill -9 [対象のmysqlのPID]

やったこと

MySQLの再起動

そもそも起動ができないので意味がなかった

sudo mysql.server restart
 ERROR! MySQL server PID file could not be found!
Starting MySQL
... ERROR! The server quit without updating PID file (/usr/local/var/mysql/***.local.pid).

権限の変更

所有権を自分にしてみたが、特に意味がなかった

sudo chown -R [権限を渡したいユーザ] /usr/local/var/mysql

エラーログのチェック

「mysqldの別プロセスが動いていないか確認してね」 とのこと。これがあたりっぽい。

tail -f /usr/local/var/mysql/***.local.err
[Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.

エラー内容が違う場合は他を当たったほうがいいかもしれません。

参考記事

4
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
4
1