mysql 1449:The user specified as a definer ('root'@'%') does not exist 报错解决方法
程序员文章站
2022-07-07 22:26:55
从一个数据库数据迁移到本地localhost
程序在调用到数据库的视图时报错,直接在数据库中打开视图时也报错,类似:
mysql 1449 : The user specifi...
从一个数据库数据迁移到本地localhost
程序在调用到数据库的视图时报错,直接在数据库中打开视图时也报错,类似:
mysql 1449 : The user specified as a definer ('montor'@'%') does not exist
经查,是权限问题,解决办法:
运行:grant all privileges on *.* to monitor@"%" identified by ".";
之后打开视图时便不会报错,程序调用也不会报错。
权限问题,授权 给 root ?所有sql 权限
mysql> grant all privileges on *.* to root@"%" identified by ".";
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
推荐阅读
-
mysql的“The user specified as a definer (”@’%') does not exist”问题 解决
-
MySqlException: The user specified as a definer ('root'@'%') does not exist解决方法
-
The user specified as a definer ('root'@'%') does not exist 博客分类: mysql
-
The user specified as a definer ('root'@'%') does not exist
-
mysql 1449:The user specified as a definer ('root'@'%') does not exist 报错解决方法
-
mysql的“The user specified as a definer (”@’%') does not exist”问题 解决
-
MySQL 脚本报错:The user specified as a definer (‘skip-grants user‘@‘skip-grants host‘) does not exist
-
MySqlException: The user specified as a definer ('root'@'%') does not exist解决方法
-
mysql 1449:The user specified as a definer ('root'@'%') does not exist 报错解决方法
-
MySQL错误:The user specified as a definer (XXX@XXX) does not exist