The user myuser was originally created with permissions like a supervisor:
mysql> SHOW GRANTS FOR 'myuser'; +---------------------------------------------------------------------+ | Grants for myuser@% | +---------------------------------------------------------------------+ | GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' WITH GRANT OPTION | +---------------------------------------------------------------------+ This user must have access to the mysql database, but the rights to all other databases should remain the same. After a couple of hours of attempts, nothing happened.
Do not tell me how to implement it?
REVOKE ALL PRIVILEGES ON mysql.* FROM 'myuser'@'%'- MaxU