解决mac下mysql libssl.1.0.0.dylib报错问题

未知原因,mac系统中mysql启动不了。。

mysql.server start

dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /usr/local/Cellar/mysql/5.7.13/bin/my_print_defaults
  Reason: image not found
Starting MySQL
. ERROR! The server quit without updating PID file (/usr/local/var/mysql/bogon.pid).

检查了下,命令没问题, .zshrc 中配置如下

alias db=”mysql -uroot -pabcd.1234″

dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /usr/local/bin/mysql
  Reason: image not found
[1]    50798 abort      mysql -uroot -pabcd.1234

检查Mysql启动问题

launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist

/Users/xxx/Library/LaunchAgents/homebrew.mxcl.mysql.plist: service already loaded

搜索。。

得知可能原因:安装python3后导致openssl升级,而mysqldump还依赖1.0.0

执行命令:

brew switch openssl 1.0.2q

问题解决。

Original: https://www.cnblogs.com/lbk/p/13684574.html
Author: dnddn
Title: 解决mac下mysql libssl.1.0.0.dylib报错问题

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/8150/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

最近整理资源【免费获取】:   👉 程序员最新必读书单  | 👏 互联网各方向面试题下载 | ✌️计算机核心资源汇总