博客背景
如果不是无聊,谁又会来写博客……(最近沉迷某手游 月圆之夜、、、 感觉真好玩
问题描述
此博客解决的是macOS由于brew升级而导致的原来的MariaDB无法使用并产生下边这样报错的情况
$ 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
Abort trap: 6
mysql无法使用,报错依赖没有加载出来,经过搜索发现可能是由于brew升级而使某些文件加载不出来了,这样mysql无法使用、连接。
解决方案
重新下载无法加载的该文件(或者直接upgrade)
$ brew remove openssl
$ brew install openssl
如果系统提示 brew reinstall [email protected]
,执行就好
最后解决问题~
$ mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 8
Server version: 10.4.6-MariaDB Homebrew
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。