0
0

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.

brewでインストールしたmysql@5.7で、mysql -urootでエラーが出た話し

Last updated at Posted at 2022-03-16

Montery(ver. 12.3) のmacに、brewでmysql@5.7をインストールすると、サーバは動くんですがmysqlコマンド

/usr/local/opt/mysql@5.7/bin/mysql -uroot

を実行すると

dyld[87763]: Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib

と怒られます。

/usr/local/optにopenssl@1.1へのシンボリックリンクを作ってやると起動できました。

cd /usr/local/opt
ls -la
drwxrwxr-x   5 hoge  admin  160  3 16 09:27 .
drwxr-xr-x  14 root  wheel  448  3 15 17:56 ..
-rw-r--r--   1 hoge  admin    0  3 13 12:25 .keepme
lrwxr-xr-x   1 hoge  admin   26  3 16 08:56 mysql@5.7 -> ../Cellar/mysql@5.7/

ln -s ../Cellar/openssl@1.1/1.1.1m openssl@1.1 
ls -la
drwxrwxr-x   5 hoge  admin  160  3 16 09:27 .
drwxr-xr-x  14 root  wheel  448  3 15 17:56 ..
-rw-r--r--   1 hoge  admin    0  3 13 12:25 .keepme
lrwxr-xr-x   1 hoge  admin   26  3 16 08:56 mysql@5.7 -> ../Cellar/mysql@5.7/5.7.37
lrwxr-xr-x   1 hoge  admin   28  3 16 09:27 openssl@1.1 -> ../Cellar/openssl@1.1/1.1.1m

ちょっとハマりました。

0
0
1

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?