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

Posted

tags:

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

mysql 1449 : The user specified as a definer (‘user‘@‘%‘) does not exist 问题

原因是: 权限问题,当前的用户不具有执行这个sql的权限

解决方式: 你需要授权给 user 用户 所有sql 权限,需要执行如下操作:

 

mysql> grant all privileges on *.* to [email protected]"%" identified by ".";
执行成功即可
mysql> flush privileges;
执行成功即可

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

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

MySQL 报错1449:The user specified as a definer (’mysql.infoschema‘@’localhost‘) does not exist

mysql 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 (1449错误)最简解决方案

MySQLmysql 1449 : The user specified as a definer ('root'@'%') does not exist(示例代码