mysql的The user specified as a definer (”@’%') does not exist 的解决办法

Posted 潇水鱼米

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql的The user specified as a definer (”@’%') does not exist 的解决办法相关的知识,希望对你有一定的参考价值。

两种可能:

1.用户权限不够

赋给用户所有权限试试

mysql> grant all privileges on *.* to [email protected]"%" identified by ".";
Query OK, 0 rows affected (0.00 sec)


mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

2.有可能这个视图或者函数的创建人不是当前的用户。一种场景是数据的导出sql,进行的数据库迁移

视图或者函数用当前的用户重建即可

 

以上是关于mysql的The user specified as a definer (”@’%') does not exist 的解决办法的主要内容,如果未能解决你的问题,请参考以下文章

mysql的“The user specified as a definer (”@’%') does not exist”问题 解决

MySQL [Err]1449 : The user specified as a definer ('root'@'%') does not exist

mysql 1449 : The user specified as a definer ('root'@'%') does not e

MySQL错误:The user specified as a definer (XXX@XXX) does not exist

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

[bug] MySQL: The user specified as a definer ('root'@'%') does not exist