困扰了一天的难题,终于解决了。
mysql启动后报错,the user specified as a definer mysql.infoschema@localhost not exist。
这个是因为用户表有信息变更,所以需要重建用户表。
执行下面的三句 sql 即可。
DROP USER ‘mysql.infoschema’@‘localhost’;
mysql> CREATE USER ‘mysql.infoschema’@‘localhost’ IDENTIFIED BY ‘password’;
mysql> GRANT SELECT ON 星号.星号 TO 波浪线mysql.infoschema波浪线@波浪线localhost波浪线;