错误代码: 1449 The user specified as a definer ('root'@'%') does not exi

Posted zhchoutai

tags:

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

1. 错误描写叙述

1 queries executed, 0 success, 1 errors, 0 warnings

查询:call analyse_use(‘20150501‘,‘20150601‘)

错误代码: 1449
The user specified as a definer (‘root‘@‘%‘) does not exist

运行耗时   : 0 sec
传送时间   : 0 sec
总耗时      : 0.003 sec

2. 错误原因

在存储过程里。我用的用户是root,而实际的是skyusers

3. 解决的方法

将下面代码

CREATE DEFINER=`localhost`@`%` PROCEDURE `analyse_use`(IN `startDate` VARCHAR(20),IN `endDate` VARCHAR(20))

改动成

CREATE DEFINER=`skyusers`@`%` PROCEDURE `analyse_use`(IN `startDate` VARCHAR(20),IN `endDate` VARCHAR(20))

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

MySQLmysql 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

mysqldump: Got error: 1449: The user specified as a definer ('user'@'%') does not ex

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

1449-The user specified as a difiner(‘aa‘@‘%‘) does not exist

1449-The user specified as a difiner(‘aa‘@‘%‘) does not exist