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

2020.1.30
过两天又回来了,上次解决这个问题的时候有用到一个flush privileges,当时就感觉改错了什么,果然,今天再打开navicat然后本地localhost就连接不上了,关掉系统代理还是不行,,,

但是好像也不是root的权限的问题,貌似是密码不对,最后改一下密码就OK了。

->set password for root@localhost = password('');
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值