質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.46%
MySQL

MySQL(マイエスキューエル)は、TCX DataKonsultAB社などが開発するRDBMS(リレーショナルデータベースの管理システム)です。世界で最も人気の高いシステムで、オープンソースで開発されています。MySQLデータベースサーバは、高速性と信頼性があり、Linux、UNIX、Windowsなどの複数のプラットフォームで動作することができます。

Q&A

1回答

912閲覧

mysqlを5.6から5.7切り替わらない

Awtanabe

総合スコア25

MySQL

MySQL(マイエスキューエル)は、TCX DataKonsultAB社などが開発するRDBMS(リレーショナルデータベースの管理システム)です。世界で最も人気の高いシステムで、オープンソースで開発されています。MySQLデータベースサーバは、高速性と信頼性があり、Linux、UNIX、Windowsなどの複数のプラットフォームで動作することができます。

0グッド

0クリップ

投稿2021/07/02 09:31

編集2021/07/02 09:39

brew でmysql@5.7をインストールするも、5.6から切り替えが上手くいきません

下記のコマンドを打ってみると、mysql@5.7を見ているようなのですが、

$ which mysql /usr/local/opt/mysql@5.7/bin/mysql

mysqlコマンドを打ってみると

➜ ~ mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 12 Server version: 5.6.50 Homebrew

/usr/local/opt/mysql@5.7/bin/mysql このコマンドを打っても 5.6を見に行ってしまいます。。

➜ ~ /usr/local/opt/mysql@5.7/bin/mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 19 Server version: 5.6.50 Homebrew Copyright (c) 2000, 2021, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>

どなたかご教示をいただけないでしょうか?

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

m.ts10806

2021/07/02 10:07

5.6をアンインストールするとどうなりますか?
Awtanabe

2021/07/02 10:10

ご確認ありがとうございます! 下記になります。。! ``` ➜ ~ brew uninstall mysql@5.6 Error: No available formula or cask with the name "mysql@5.6". ```
guest

回答1

0

バックアップが不要なら、完全に削除してください。

/usr/local/opt/mysql*
/usr/local/Cellar/mysql*
/usr/local/var/mysql*
/usr/local/etc/my*

投稿2021/07/02 11:18

technocore

総合スコア7247

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

Awtanabe

2021/07/02 11:56

ご確認ありがとうございます! brew uninstall mysql@5.6 上記を削除、 zshrcのパスの指定も削除して 5.7をインストールしてみます!
Awtanabe

2021/07/02 12:30

上記の手順で実行しましたが、変わらずでした。。。 ``` ➜ ~ which mysql /usr/local/opt/mysql@5.7/bin/mysql ``` ``` ➜ ~ mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 99 Server version: 5.6.50 Homebrew Copyright (c) 2000, 2021, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. ```
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.46%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問