Macでmysql5.5.60をインストールしようとしたのですが(いろいろあって少し古いバージョンで検証したかった)
それがなぜか反映されずに困っています。。。
少し長くなってしまいますがコマンドと結果を載せておきます。
インストール
~ $ brew install mysql@5.5 Updating Homebrew... ==> Auto-updated Homebrew! Updated 1 tap (homebrew/core). ==> New Formulae thors-serializer ==> Downloading https://homebrew.bintray.com/bottles/mysql@5.5-5.5.60.high_sierr ######################################################################## 100.0% ==> Pouring mysql@5.5-5.5.60.high_sierra.bottle.tar.gz ==> /usr/local/Cellar/mysql@5.5/5.5.60/bin/mysql_install_db --verbose --user=yut ==> Caveats A "/etc/my.cnf" from another install may interfere with a Homebrew-built server starting up correctly. MySQL is configured to only allow connections from localhost by default To connect: /usr/local/opt/mysql@5.5/bin/mysql -uroot This formula is keg-only, which means it was not symlinked into /usr/local, because this is an alternate version of another formula. If you need to have this software first in your PATH run: echo 'export PATH="/usr/local/opt/mysql@5.5/bin:$PATH"' >> ~/.bash_profile For compilers to find this software you may need to set: LDFLAGS: -L/usr/local/opt/mysql@5.5/lib CPPFLAGS: -I/usr/local/opt/mysql@5.5/include To have launchd start mysql@5.5 now and restart at login: brew services start mysql@5.5 Or, if you don't want/need a background service you can just run: /usr/local/opt/mysql@5.5/bin/mysql.server start ==> Summary ???? /usr/local/Cellar/mysql@5.5/5.5.60: 318 files, 86.5MB
brew infoで見てみる
~ $ brew info mysql mysql: stable 8.0.11 (bottled) Open source relational database management system https://dev.mysql.com/doc/refman/8.0/en/ Conflicts with: mariadb (because mysql, mariadb, and percona install the same binaries.) mariadb-connector-c (because both install plugins) mysql-cluster (because mysql, mariadb, and percona install the same binaries.) mysql-connector-c (because both install MySQL client libraries) percona-server (because mysql, mariadb, and percona install the same binaries.) Not installed From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/mysql.rb ==> Dependencies Build: cmake ✘ Required: openssl ✔ ==> Requirements Required: macOS >= 10.10 ✔ ==> Options --with-debug Build with debug support --with-embedded Build the embedded server --with-local-infile Build with local infile loading support --with-memcached Build with InnoDB Memcached plugin --with-test Build with unit tests ==> Caveats We've installed your MySQL database without a root password. To secure it run: mysql_secure_installation MySQL is configured to only allow connections from localhost by default To connect run: mysql -uroot To have launchd start mysql now and restart at login: brew services start mysql Or, if you don't want/need a background service you can just run: mysql.server start
シンボリックリンク
~ $ brew link mysql Error: No such keg: /usr/local/Cellar/mysql
アンインストールしてみよう
~ $ brew uninstall mysql Error: No such keg: /usr/local/Cellar/mysql
できない......
brew doctorに聞いてみよう
~ $ brew doctor Your system is ready to brew.
わからん.....
って感じでした。
どなたか勘でもいいので「これじゃね?あれじゃね?」みたいな感じで回答いただけたら嬉しいです。
よろしくお願いいたします。

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/07/27 00:48
2018/07/27 01:01
2018/07/27 01:01