The user specified as a definer (''@'') does not exist 关于数据库权限 Mysql权限

插入数据时出现错误

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

网上一查是权限问题,赋权就好

mysql > grant all privileges on *.* to ''@'' identified by '.';

mysql > flush privileges;

这里注意一下,如果你的错误是

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

那么你执行就应该是

mysql > grant all privileges on *.* to 'root'@'%' identified by '.';

具体情况看你的错误,请不要直接复制代码

还不会,有大招,关注下方公众号直接提问就可以了哈

posted @ 2020-10-16 14:30  正义的棒棒糖  阅读(689)  评论(0编辑  收藏  举报