REVOKE
priv_type [(column_list)]
[, priv_type [(column_list)]] ...
ON [object_type] priv_level
FROM user [, user] ...
REVOKE ALL PRIVILEGES, GRANT OPTION
FROM user [, user] ...
mysql> show grants for 'temp4'@'localhost';
mysql> revoke insert(Name) on db_temp3.temp3_tb1 from 'temp4'@'localhost';
Query OK, 0 rows affected (0.00 sec)
mysql> revoke insert, update, delete on db_temp3.temp3_tb1 from 'temp31'@'localhost';
Query OK, 0 rows affected (0.00 sec)
mysql> show grants for 'temp31'@'localhost';
REVOKE ALL PRIVILEGES, GRANT OPTION
FROM user [, user] ...
mysql> show grants for 'beyes'@'localhost';
mysql> revoke all privileges, grant option from 'beyes'@'localhost';
Query OK, 0 rows affected (0.00 sec)
mysql> show grants for 'beyes'@'localhost';
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |