ERROR 1133 (42000): Can't find any matching row in the user table,42000matching
环境:
操作系统:
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.%.%';
用户名是无法匹配上的,因此报上述错误。
解决方案:
删除原来的用户,以显示指定的方式进行创建。
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。