当前位置: 移动技术网 > IT编程>数据库>Mysql > ERROR 1133 (42000): Can't find any matching row in the user table

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

2019年06月04日  | 移动技术网IT编程  | 我要评论

环境:
操作系统:
redhat 7.5 x86-64

数据库版本
mysql 5.7.25

现象:
error 1133 (42000): can't find any matching row in the user table

变化:
新建用户,并进行赋权。

原因:
创建用户时
create user user identified by 'password';

默认用户为'user'@'%'。

赋权时使用
grant select,insert,update,delete on db.* to 'user'@'172.28.%.%';

用户名是无法匹配上的,因此报上述错误。

解决方案:
删除原来的用户,以显示指定的方式进行创建。

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网