-- 可根据情况进行过滤
show grants for "aaa"@"192.168.1.1";
select * from mysql.db;
select * from mysql.user;
REVOKE ALL PRIVILEGES ON *.* FROM 'readonly'@'0.0.0.0'; -- 删除权限
-- 授权后不能在本机访问,需要去远程主机访问-- 可根据情况进行过滤
show grants for "aaa"@"192.168.1.1";
select * from mysql.db;
select * from mysql.user;
REVOKE ALL PRIVILEGES ON *.* FROM 'readonly'@'0.0.0.0'; -- 删除权限
-- 授权后不能在本机访问,需要去远程主机访问