对 The user specified as a definer ('root'@'') does not exist 有关问题的解决

对 The user specified as a definer ('root'@'') does not exist 问题的解决

这是由于root用户权限不够造成的

解决方法:

登陆mysql

mysql -u root -pPasswd(密码)

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

mysql >flush privileges;

 

然后再继续原来的操作就没有问题了。