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

后端 未结 3 632
耶瑟儿~
耶瑟儿~ 2021-01-30 06:54

After I upgraded MySQL 5.7 to MySQL 8.0, I started MySQL again and I got an error:The user specified as a definer (\'mysql.infoschema\'@\'localhost\') does not exist\' when tryi

3条回答
  •  有刺的猬
    2021-01-30 07:02

    It may occur after some time after you set up your new system.

    As a suggested solution, just try on Windows

    1) open cmd.exe as Administrator

    2) run mysql_upgrade.exe -uyour_user_name -pyour_password

    mysql_upgrade.exe can be located at

    C:\Program Files\MySQL\MySQL Server 8.0\bin
    

    Then run the following to see if the infoschema user has appeared.

    select user, host from mysql.user;
    

提交回复
热议问题