In MySQL, is there a way to execute a query as a specific user to check table permissions? Is there a way to personalize the user's execution context when you are connected to a higher priority account?
In the MSSQL world, you can use EXECUTE AS login = 'username' and then your SQL statements and then finally REVERT to close the impersonation.
Is there something similar in MySQL?
Kevin source share