0
1

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の複数バージョンの衝突対処法

Posted at

目的

MySQL8を入れた後に「初心者は8ではなく5.7を使った方がいい」という旨の記事を読み,後追いで5.7を入れたところ衝突が起きたのかmysql server.startなどをしても毎回エラーが起きるようになってしまった.
これを解決し,5.7をインストールしたい.

とにかくアンインストール

$ 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*

とにかく消す.エラーを見ずに解決するなんて邪道だが,初心者のうちは成功体験を積むためにとにかく短時間で先に進むことを目的とする.

再びインストール

$ brew install mysql@5.7
0
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?