MySQL 脚本报错:The user specified as a definer (‘skip-grants user‘@‘skip-grants host‘) does not exist

2022-07-29,,,,

The user specified as a definer (‘skip-grants user’@‘skip-grants host’) does not exist

项目运行过程中报错,数据库是Mysql,是在查询数据的时候报The user specified as a definer (‘skip-grants user’@‘skip-grants host’) does not exist 的错误。

原因

查了一些资料,发现是权限问题,创建那些数据所用的用户在本电脑上不存在,所以这边的用户没有权限操作数据库

解决

用户添加权限,执行以下语句

grant all privileges on *.* to 'skip-grants user'@'skip-grants host' identified by "."

问题解决


天下英雄出我辈,一入江湖岁月催
我是「无间行者」,努力把实践过的解决方案分享给大家
如果这篇文章对你有用,一个赞、一个评论、一个关注,我都很开心
码字不易,给点鼓励吧,让我知道你在看

本文地址:https://blog.csdn.net/qq_35606010/article/details/107856965

《MySQL 脚本报错:The user specified as a definer (‘skip-grants user‘@‘skip-grants host‘) does not exist.doc》

下载本文的Word格式文档,以方便收藏与打印。