The user specified as a definer ('root'@'%') does not exist

Today, when using the mysql stored procedure, the tomcat console reported an error

The user specified as a definer ('root'@'%') does not exist

Baidu a bit, and found that it is a permission problem

Grant all sql permissions to root

mysql> grant all privileges on *.* to root@"%" identified by ".";
Query OK, 0 rows affected (0.00 sec)

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326022004&siteId=291194637