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)