mysql:The user specified as a definer ('xxx'@'%') does not exist 解决方法

时间:2022-02-02 09:08:31

发生这种问题。大概率是用户不存在或者是权限不够

用户不存在。用可视化工具新建一个。

权限不够 ,运行下面命令:

如:我的错误:

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

movitity权限不够。

运行结果如下:

mysql> grant all privileges on *.* to movitity@"%" identified by ".";
Query OK, rows affected (0.01 sec) mysql> flush privileges;
Query OK, rows affected (0.01 sec)

mysql:The user specified as a definer ('xxx'@'%') does not exist 解决方法