LoginSignup
15
17

More than 5 years have passed since last update.

MacのOSをアップデートした後にMySQLが使えなくなった場合の対処方法

Posted at

MacのOSをアップデートしたところ、mysqlが起動しなくなった。

条件

  • Mac OS Sierra
  • MySQL5.6(Homebrewでインストール済)

対処方法

Homebrewでインストール済のパッケージを再度リンクする。

#インストールされていることを確認
$ ls /usr/local/Cellar/mysql*
/usr/local/Cellar/mysql56:
5.6.29

/usr/local/Cellar/mysql@5.6:
5.6.29


#再度リンクする
brew unlink mysql@5.6
brew link --force mysql56

#パスも追加する
echo 'export PATH="/usr/local/opt/mysql@5.6/bin:$PATH"' >> ~/.bash_profile 

ターミナルを再起動して動作確認する。

# 動作確認
$ sudo mysql.server start
Starting MySQL
. SUCCESS! 

15
17
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
15
17