这篇文章主要讲解了“MySQL怎么收回用户所有权限”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“MySQL怎么收回用户所有权限”吧!
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)
感谢各位的阅读,以上就是“MySQL怎么收回用户所有权限”的内容了,经过本文的学习后,相信大家对MySQL怎么收回用户所有权限这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是亿速云,小编将为大家推送更多相关知识点的文章,欢迎关注!