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起動時のERROR! The server quit without updating PID fileを解決

Posted at

#起こったこと

mysqlを学ぼうとインストール→起動の時点で躓きました。

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

#試したこと(ERROR!パターン)

アンインストール→インストール→起動→ERROR!

% brew uninstall mysql
% brew install mysql
% mysql.server start
Starting MySQL
.. ERROR! The server quit without updating PID file (/usr/local/var/mysql/MacBook-Pro.local.pid).

#試したこと(SUCCESS!パターン)

アンインストール→mysqlに関するファイルを全て削除→再度インストール→起動→SUCCESS!

% brew uninstall mysql
% sudo rm -rf /usr/local/mysql
% sudo rm -rf /Library/StartupItems/MYSQL
% sudo rm -rf /Library/PreferencePanes/MySQL.prefPane
% sudo rm -rf /Library/Receipts/mysql-.pkg
% sudo rm -rf /usr/local/Cellar/mysql*
% sudo rm -rf /usr/local/bin/mysql*
% sudo rm -rf /usr/local/var/mysql*
% sudo rm -rf /usr/local/etc/my.cnf
% sudo rm -rf /usr/local/share/mysql*
% sudo rm -rf /usr/local/opt/mysql*
% sudo rm -rf /usr/local/var/mysql/MacBook-Pro.local.pid
% brew install mysql
% mysql.server start
Starting MySQL
. SUCCESS! 

やっとこれで駆け出せそうです・・・。

#参考

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?