the user specified as a definer ('police_admin'@'%') does not exist

场景:最近重新将云端上的MySQL 数据导入本地,启动项目爆出异常信息,the user specified as a definer (‘police_admin’@’%’) does not exist,解决办法如下;

mysql> grant all privileges on . to police_admin@"%" identified by “.”;
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

给police_admin 赋予视图权限就可以了;

猜你喜欢

转载自blog.csdn.net/weixin_43375485/article/details/88102613