MySQL ERROR 1133 (42000): Can’t find any matching row in the user table

0x01 问题描述

在使用 mysql 以下命令修改用户密码的时候出现这个错误:ERROR 1133 (42000): Can’t find any matching row in the user tabl.从字面上的意思是在用户标签中找不到匹配的行;

set password for mysqlroot@localhost = password ('123456');

MySQL ERROR 1133 (42000): Can't find any matching row in the user table

0x02 解决方法

我们登录到 mysql 查询下 mysql 用户的相关信息;

mysql -uroot -p
Enter password: ************
select Host,User from user;

MySQL ERROR 1133 (42000): Can't find any matching row in the user table

从列出的用户信息可以看到列出的用户和 host,修改命令即可;

set password for mysqlroot@localhost = password ('123456');    # 原报错命令;
set password for mysqlroot@'%' = password ('123456');     # 修改 localhost 为 % 密码修改搞定;

MySQL ERROR 1133 (42000): Can't find any matching row in the user table

  如果您想获取这篇文章的最新信息,可以收藏此文章,当文章更新时我们会通过邮件通知您!点击下面的 即可收藏 ↓

python ERROR: Command errored out with exit status 1:
上一篇 2022年4月4日 08:56
博客服务器 root 密码被爆破
下一篇 2022年4月2日 13:58

相关推荐

分享本页
返回顶部
×

获取邀请码

本站只支持「QQ邮箱」切勿使用其他邮箱!
客服支持 QQ:9412971

邀请码
库存 95
¥ 1.00