【MySQL错误: The user specified as a definer (‘mysql.infoschema‘@‘localhost‘) does not exist】

1.错误的来源:误删用户 mysql.infoschema

【MySQL错误: The user specified as a definer (‘mysql.infoschema‘@‘localhost‘) does not exist】_第1张图片

2.解决办法:既然是误删,则重新创建即可(先登录,再创建)

【MySQL错误: The user specified as a definer (‘mysql.infoschema‘@‘localhost‘) does not exist】_第2张图片

//相关的指令:
create user 'mysql.infoschema'@'localhost' identified by '123456';

grant all on *.* to 'mysql.infoschema'@'localhost';

3.恢复成功!

【MySQL错误: The user specified as a definer (‘mysql.infoschema‘@‘localhost‘) does not exist】_第3张图片

你可能感兴趣的:(mysql,java,数据库)