-
mysql> show grants for gltest@localhost;
-
+-----------------------------------------------------+
-
| Grants for gltest@localhost |
-
+-----------------------------------------------------+
-
| GRANT ALL PRIVILEGES ON *.* TO 'gltest'@'localhost' |
-
| GRANT SELECT ON `orcl`.* TO 'gltest'@'localhost' |
-
+-----------------------------------------------------+
-
2 rows in set (0.00 sec)
-
-
mysql> revoke all,grant option from gltest@localhost;
-
Query OK, 0 rows affected (0.00 sec)
-
-
mysql> show grants for gltest@localhost;
-
+--------------------------------------------+
-
| Grants for gltest@localhost |
-
+--------------------------------------------+
-
| GRANT USAGE ON *.* TO 'gltest'@'localhost' |
-
+--------------------------------------------+
-
1 row in set (0.00 sec)
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/20893244/viewspace-2148787/
,如需转载,请注明出处,否则将追究法律责任。