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

grant all privileges on *.* to root@"%" identified by ".";

flush privileges;

原文地址:https://www.cnblogs.com/exmyth/p/4043329.html