首页 > 代码库 > The user specified as a definer ('root'@'%') does not exist

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

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