LoginSignup
3
1

More than 3 years have passed since last update.

ローカルでMysqlが急に動かなくなった

Last updated at Posted at 2020-02-06

概要

いつも通りターミナルからmysqlコマンドでDBにログインしようとしたら以下のようなエラーがでた

$ mysql -u **** -D **** -h **.***.***.*** -p
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /usr/local/bin/mysql
  Reason: image not found
Abort trap: 6

やったこと

ん~なんか調べてもよくわからん
結果いろんな記事見てったらbrewでインストールしなおすのが一番簡単で早いっぽい

1. アンインストール

$ brew uninstall mysql
Uninstalling /usr/local/Cellar/mysql/5.7.21... (323 files, 233.9MB)

2. インストール

$ brew install mysql
Updating Homebrew...


(以下略)

3. ログイン

$ mysql -u **** -D **** -h **.***.***.*** -p
Enter password:

動いた

事後に思ったこと

よくよく考えたらmysql起動しているかとか見るの忘れてた...
もしかしたらそれで解決したかも...

おわり

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