Mysql:The user specified as a definer ('xxx'@'%') does not exist 错误

时间:2021-08-30 01:55:51   收藏:0   阅读:4

1、在mysql 数据库新建视图的时候,提示

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

2、原因:

由于root用户对全局host无访问权限。因此只要给root用户添加一个访问权限即可。

执行命令:

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

原文:https://www.cnblogs.com/wongzzh/p/15200331.html

评论(0)
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!