报错500:The user specified as a definer ('***'@'localhost') does not exist解决方法

从一个数据库数据迁移到本地localhost

打开网页后报错500:The user specified as a definer ('****'@'localhost') does not exist。

解决方法
1.在cmd中打开MySQL
2.权限问题,授权 给 root  所有sql 权限

mysql> grant all privileges on *.* to ***@"localhost" identified by ".";

.
报错500:The user specified as a definer ('***'@'localhost') does not exist解决方法
3.再次打开浏览器,打开该网页,就OK了。