mysql 由于brew升级而导致的某些文件加载不出来使数据库无法用的解决方案

博客背景

如果不是无聊,谁又会来写博客……(最近沉迷某手游 月圆之夜、、、 感觉真好玩

问题描述

博客解决的是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 openssl@1.1,执行就好

最后解决问题~

$ 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)]> 

Aczy156 发布了86 篇原创文章 · 获赞 12 · 访问量 1万+ 私信 关注

相关文章

安装开始...1.打开“https://dev.mysql.com/downloadsepo/yu...
安装Helm3#官网下载慢#wgethttps://get.helm.sh/helm-v3.5.4...
通过Linux命令行启动用的指令:systemctlstartmariadb.servi...
InstallingMariaDBServer10.4TodeployMariaDBCommunityServe...
阅读目录一什么是存储引擎二mysql支持的存储引擎三使用存储引...
1、安装MariaDB安装命令yum-yinstallmariadbmariadb-server安...