1.问题原因:
mac 升级了 brew update导致启动mysql时候报错:
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/bin/mysql
Reason: image not found
原因是openssl升级到1.1,但mysql还是依赖的1.0.0
2.解决方法:
查看已经安装的版本:
brew info openssl
openssl@1.1: stable 1.1.1g (bottled) [keg-only]
Cryptography and SSL/TLS Toolkit
https://openssl.org/
/usr/local/Cellar/openssl/1.0.2s (1,795 files, 12.1MB)
Poured from bottle on 2019-07-07 at 11:17:20
/usr/local/Cellar/openssl@1.1/1.1.1d (7,983 files, 18.0MB)
Poured from bottle on 2019-10-31 at 14:45:47
/usr/local/Cellar/openssl@1.1/1.1.1g (8,060 files, 18.4MB)
Poured from bottle on 2020-08-11 at 11:50:52
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/openssl&#