How does MySQL take back all the permissions of the user
This article mainly explains "how to take back all user permissions in MySQL". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to recover all user permissions in 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)
Thank you for your reading, the above is the content of "how to withdraw all user permissions from MySQL". After the study of this article, I believe you have a deeper understanding of how to recover all user permissions from MySQL, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!