mysql启动报错dyld[9212]: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib

小畅 32,353 次浏览 0
dyld[9212]: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: <C17C7C39-8D43-389D-8CD1-703B1B65D772> /usr/local/Cellar/mysql@5.6/5.6.43/bin/my_print_defaults
  Reason: tried: '/usr/local/opt/openssl/lib/libssl.1.0.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/openssl/lib/libssl.1.0.0.dylib' (no such file), '/usr/local/opt/openssl/lib/libssl.1.0.0.dylib' (no such file), '/usr/local/lib/libssl.1.0.0.dylib' (no such file), '/usr/lib/libssl.1.0.0.dylib' (no such file, not in dyld cache)
Starting MySQL
.dyld[9233]: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: <C17C7C39-8D43-389D-8CD1-703B1B65D772> /usr/local/Cellar/mysql@5.6/5.6.43/bin/my_print_defaults
  Reason: tried: '/usr/local/opt/openssl/lib/libssl.1.0.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/openssl/lib/libssl.1.0.0.dylib' (no such file), '/usr/local/opt/openssl/lib/libssl.1.0.0.dylib' (no such file), '/usr/local/lib/libssl.1.0.0.dylib' (no such file), '/usr/lib/libssl.1.0.0.dylib' (no such file, not in dyld cache)
dyld[9234]: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: <C17C7C39-8D43-389D-8CD1-703B1B65D772> /usr/local/Cellar/mysql@5.6/5.6.43/bin/my_print_defaults
  Reason: tried: '/usr/local/opt/openssl/lib/libssl.1.0.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/openssl/lib/libssl.1.0.0.dylib' (no such file), '/usr/local/opt/openssl/lib/libssl.1.0.0.dylib' (no such file), '/usr/local/lib/libssl.1.0.0.dylib' (no such file), '/usr/lib/libssl.1.0.0.dylib' (no such file, not in dyld cache)
/usr/local/Cellar/mysql@5.6/5.6.43/bin/mysqld_safe: line 183:  9305 Abort trap: 6           nohup /usr/local/Cellar/mysql\@5.6/5.6.43/bin/mysqld --basedir=/usr/local/Cellar/mysql\@5.6/5.6.43 --datadir=/usr/local/var/mysql --plugin-dir=/usr/local/Cellar/mysql\@5.6/5.6.43/lib/plugin --log-error=localhost.err --pid-file=/usr/local/var/mysql/localhost.pid < /dev/null >> /usr/local/var/mysql/localhost.err 2>&1
 ERROR! The server quit without updating PID file (/usr/local/var/mysql/localhost.pid).

原因是openssl版本更新到1.1了,我们只需要在安装成1.0,然后在软连接上即可。

brew install rbenv/tap/openssl@1.0
ln -sfn /usr/local/Cellar/openssl@1.0/1.0.2t /usr/local/opt/openssl

 原文

发表评论 取消回复
表情 图片 链接 代码

分享