Scenes:
- Export the database data of the production environment to a sql file, such as: 1.sql
- Import 1.sql into a local database.
question:
- The user specified as a definer ("@'%') does not exist when querying the view.
solve:
grant create view on df.* to dfa;
grant select on df.* to dfa;
Description: df is the local database name, dfa is the database user name