权限问题,授权 给 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错误1449,'The user specified as a definer ('root'@'%') does not exist'时,通常是由于缺少相应的用户权限导致。解决方法包括检查并确保'root'用户具有执行所有SQL操作的权限。这可能涉及到数据库的授权和权限设置,特别是在使用Java或MyBatis等框架进行数据库交互时。
权限问题,授权 给 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)

1万+
1016
1万+
3977

被折叠的 条评论
为什么被折叠?
