您好,欢迎光临! 推荐您使用Chrome浏览器访问本站。

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

从其他库导入后,查询无法使用,提示:The user specified as a definer (‘root’@’%’) does not exist,原因为root无访问权限,只要给root用户再添加一个对全部host都有可以访问的权限

操作如下:

登陆mysql

mysql -u root -pPasswd

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

mysql >flush privileges;

您可能也喜欢