Error: ER_NO_SUCH_USER: The user specified as a definer ('root'@'localhost') does not exist

最简单的解决办法:

  1. 授权
grant all on *.* to 'ROOT'@'%' identified by 'PASSWORD' with grant option;

或者:
grant all privileges on *.* to 'root'@'localhost';
  1. 刷新权限
flush privileges;

你可能感兴趣的:(Error: ER_NO_SUCH_USER: The user specified as a definer ('root'@'localhost') does not exist)