The user specified as a definer ('root'@'%') does not exist 解决方法

当我们进行数据库迁移的时候有时候会遇到

The user specified as a definer ('root'@'%') does not exist的问题,

解决方法如下,如下命令

第一步

grant all privileges on *.* to root@"%" identified by "Passwd";

第二步

flush privileges;

然后在连接,问题解决

posted @ 2017-04-16 14:27  殷瑜泰  阅读(304)  评论(0编辑  收藏  举报