ERROR 1449 (HY000): The user specified as a definer ('mysql.infoschema'@'localhost') does not exist

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/youcijibi/article/details/82414582

Mysql Error:The user specified as a definer (‘mysql.infoschema’@’localhost’) does not exist’ when trying to dump tablespaces

我的MYSQL 使用Docker进行部署的,当我进行版本升级(MySQL 5.7 to MySQL 8.0)之后,尝试进行连接的时候就会报这个错误。

解决办法:
(来源https://dev.mysql.com/doc/refman/8.0/en/upgrading-strategies.html)


mysql> SET GLOBAL innodb_fast_shutdown = 1; //可不需要
mysql_upgrade -u root -p

其实主要是因为在my.cnf配置文件中skip_name*****跳过了域名解析并且删除掉了user表中所有localhost为地址的用户

而升级则是把这些用户重新添加了回来

猜你喜欢

转载自blog.csdn.net/youcijibi/article/details/82414582