未知原因,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
問題解決。