The user specified as a definer ('admin'@'%') does not exist 问题解决

The user specified as a definer ('admin'@'%') does not exist

复制现场库过来测业务,在启动项目的时候,报错提示

出现了类似语句,问题就是登陆的该用户缺失对该数据库的一些操作权限。

grant all privileges on *.* to admin(错误提示哪一个就输入哪一个) @"%" identified by "密码";  
flush privileges;
原文地址:https://www.cnblogs.com/liruilong/p/14185830.html