Mac 设置mysql数据库密码失败,各种坑以及解决办法

mysql设置密码遇到的坑

设置数据库密码时,报错 ... Failed! Error: The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

解决办法:进入mysql安装路径进入bin 打开mysql.exe,输入以下命令 先刷新一下权限表。

mysql> flush privileges;

在终端启动mysql,输入mysql_secure_installation命令设置数据库密码时

... Failed! Error: Can't find any matching row in the user table

可以在mysql.exe这个文件中直接设置密码

在mysql.exe中输入

set password for root@localhost=password('你的密码');

Failed to save password Error code: -34018 旧版本Navicat Premium 15.0.20没有这个问题,新版本保存不了数据库密码。之前的版本是15.0.22好像,现在下了12.0.16版本就好了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值