LoginSignup
0
0

More than 3 years have passed since last update.

MySQLが起動できない時の対処法

Posted at

環境

macOS Mojave 10.15.1

MySQL 8.0.15

エラー文

エラー文1

dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib

エラー文2

ERROR! The server quit without updating PID file

解決方法

MySQLのデータファイルやログなどが格納されているディレクトリを削除する

$ sudo rm -rf /usr/local/var/mysql

MySQLを再インストール

$ brew uninstall mysql
$ brew install mysql

MySQLを起動

$ mysql.server start
Starting MySQL
SUCCESS!

感想

エラー文1でググっていたために、かなり時間がかかりました

エラー文2でググってみたらこのやり方ですんなり

詳しくは参考記事を見てください

参考記事

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