未知原因,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
问题解决。