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


通常是因为root用户对全局host无訪问权限。因此仅仅要给root用户加入一个訪问权限就可以。

  解决的方法:

  登陆mysql 。运行

  mysql -u root -pPasswd

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

  mysql >flush privileges

原文地址:https://www.cnblogs.com/gavanwanggw/p/6755333.html