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

2019-05-21 08:25:18,846 [org.hibernate.util.JDBCExceptionReporter]-[ERROR] The user specified as a definer (‘root’@’%’) does not exist
2019-05-21 08:25:18,846 [WARN]-[WARN] Resolved exception caused by Handler execution: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute query

*That error may happen when you try to run some SQL commands as a ROOT user which was imported from another MySQL database

http://bitexperts.com/Question/Detail/3288/error-the-user-specified-as-a-definer-root-does-not-exist

-- Remove current user
DROP USER ‘root’@’%’;
-- Add ROOT user again
CREATE USER ‘root’@’%’ IDENTIFIED BY ‘ROOT_PASSWORD’;
-- Add permissions
GRANT ALL PRIVILEGES ON * . * TO ‘root’@’%’;
FLUSH PRIVILEGES;

那么多中文文章没有告诉我前两行的。。