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

MySQL 数据库新建用户来访问。出现The user specified as a definer ('root'@'%') does not exist

因为函数创建者是root用户。

只要将root帐户设置为所有服务都能访问即可。
grant all privileges on *.* to root@"%" identified by "password";

Flush privileges;

你可能感兴趣的:(mysql,mysql用户)