LoginSignup
0
0

More than 3 years have passed since last update.

ERROR! The server quit without updating PID file (/usr/local/var/mysql/***.local.pid).の解決方法

Last updated at Posted at 2020-06-24

rails sでサーバーを起動。いざブラウザでアクセスすると以下のようなエラー。

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

解決方法

mysqlに関するファイルを全て削除。mysqlもアンインストールしたら動いた。
*データが消える恐れがあります。

$ sudo rm -fr /usr/local/var/mysql/
$ sudo rm -fr /usr/local/Cellar/mysql/
$ sudo rm -fr ./usr/local/Cellar/mysql/

まずはMysqlに関するファイルが保存されているディレクトリを削除。

既にインストール済みの場合はMysqlをアンインストールします。

$ brew uninstall mysql

次にインストール。

$ brew install mysql

起動の確認をする。

$ mysql.server start

Starting MySQL
 SUCCESS! 

参考記事
https://qiita.com/akiko-pusu/items/aef52b723da2cb5dc596
https://shikouno.hatenablog.com/entry/2017/06/22/210000
http://tech-outlines.hateblo.jp/entry/2015/03/24/180940
https://qiita.com/mogetarou/items/e34ca51d3756d55d7800

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