tags: MySQL
mysql login error 1449-The user specified as a definer(‘mysql.infoschema‘@localhost’) does not exist:
mysql -u root -p

drop user `mysql.infoschema`@"localhost";
(mysql.infoschema@"localhost" is the user and address that reported the error when connecting)

flush privileges;

create user `mysql.infoschema`@"localhost" identified by '123456';
('123456' is your own database connection password)

flush privileges;

use mysql;

update user set Select_priv = 'Y' where User = 'mysql.infoschema';
(The username is the username that reported the error)

flush privileges;

Mine can connect successfully here:

This is a refinement of the Great God’s process and records it so that the problem can be solved later:
Insert the solution of the Great God below:
Great God's solution
Question Phenomenon: mysql> show databases; ERROR 1449 (HY000): The user specified as a definer ('mysql.infoschema'@'localhost') does not exist Solution: 1. First look at whether mysql sets an envi...
Executing a custom function is reporting an error of 1449 Assign all permissions to the current user through the following statement root is the user name of the current user...
a problem that belongs to the authority,Generally, the root user does not have access to the global host. So just add an access permission to the root user. Authorize root all sql permissions First lo...
I reported the above error when deleting the table data recently. Found when viewing the table structure that could not be deleted. There is a trigger for this table. And the definer of the table -- t...
1, error description 2, the cause of the error This is a permissions issue, granted to all SQL statements root of 3, the solution...
When imported during the project, run the emergence of this issue, probably means no access to the database. Solution Basically this can be solved....
Migrating data from one database to migrate local localhost or localhost local data to a server in Windows Server is seeking its In the call to view the database error, is also being given directly to...
Reproduced in: https: //my.oschina.net/u/1776219/blog/1512099...
Recently, I am working on a project. Due to server switching, I need to import the original server's mysql data table and stored procedures into another server's mysql database. The following error is...