

REVOKE ALL PRIVILEGES,GRANT OPTION FROM user… To revoke all privileges, you use the following MySQL REVOKE syntax: In order to revoke privileges from an account, you must have GRANT OPTION privilege and privileges that you are revoking. You can specify multiple accounts in the FROM clause. ON clause specifies the privilege level at that privileges are to be revoked.Īfter FROM keyword, you specify the account that you want to revoke the privileges. You need to separate privileges by comma.

You specify a list of privileges that you want to revoke from an account right after the REVOKE keyword. Let’s examine the MySQL REVOKE statement in more detail. The syntax of MySQL REVOKE statement is as follows: In order to revoke privileges from an account, you use the MySQL REVOKE statement.
#Mysql create user syntax how to#
How to Use MySQL GRANT to Grant Privileges to Account Getting Started with MySQL Access Control System

We are highly recommend that you follow the tutorials below to have a better understanding of how MySQL REVOKE works: Summary:in this tutorial, you will learn how to use MySQL REVOKEstatement to revoke privileges from MySQL accounts.
