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をMacで使うと必ず遭遇する<.. ERROR! The server quit without updating PID file>←こいつ

Last updated at Posted at 2021-01-29

#はじめに

####解決策①
PIDを作ってみる

$touch /usr/local/var/mysql/$(uname -n).pid 

####解決策②
権限を変える

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

####解決策③
mysqlをアンインストールし、関連ファイルを消し、再インストール
【MySQL】pid not foundもしくはpermission deniedの対応方法

####①〜③でダメだった人!!次を試してみて!!!

##今回の解決策
実行中のプロセスから、mysqlを抽出

$ps -e | grep mysqld

  322 ??         0:00.04 /bin/sh /usr/local/zend/mysql/bin/mysqld_safe (以下略)
  700 ??         0:08.92 /usr/local/zend/mysql/bin/mysqld (以下略)

出てきたプロセスIDをkillする

$sudo kill 322
$sudo kill 700
$mysql.server start
Starting MySQL
. SUCCESS! 

#おわりに
mysqlをmacにインストールする度に遭遇し、その度に解決策を忘れ死に物狂いでコマンドを打ってます。

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?