SQL报错:The user specified as a definer ('root'@'%') does not exist

翻译为:指定为定义者的用户(‘root’@’%’)不存在
说白了就是sql没有root的权限
授权一下就行了
grant all privileges on . to [email protected]"%" identified by “.”;
在这里插入图片描述