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

一 问题描述

同事反馈,执行一个修改t1表数据的sql,报错:

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

这报错,看起来还挺奇怪的。

二 排查思路

查看是否有definer为这个用户的触发器:

SELECT * FROM information_schema.`TRIGGERS` WHERE DEFINER='aa@%';

发现有相关记录,且该触发器正是建在t1表上的。

三 解决办法

创建该报错用户;

或者用正确用户重建该触发器

Guess you like

Origin blog.csdn.net/yabignshi/article/details/121426421