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

1、错误描述

mysql> set password for ‘root’@‘localhost’ = password('root');
ERROR 1133 (42000): Can't find any matching row in the user table
mysql> set password for ‘root’@‘localhost’ = password('root');
ERROR 1133 (42000): Can't find any matching row in the user table

2、错误原因

     在Linux系统上安装了MySQL后,给其设置密码,发现错误;提示是“在用户表中不能找到任何匹配的行”。

错误原因是对用户表进行修改,但是没有权限


3、解决办法

     修改用户表的权限

FLUSH PRIVILEGES;


原文地址:https://www.cnblogs.com/hzcya1995/p/13314219.html