Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
1
Help us understand the problem. What is going on with this article?
@sk4

MySQLの複数バージョンの衝突対処法

More than 1 year has passed since last update.

目的

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
1
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
sk4

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
1
Help us understand the problem. What is going on with this article?