Collections:
Revoking User Privileges in MySQL
How To Revoke User Privileges in MySQL?
✍: FYIcenter.com
If your want remove some granted user privileges, you can use the "REVOKE privilegeName ..." command. You can only revoke privileges in the same way as they were granted. For example, you can not revoke a privilege on a specific database, if that privilege was granted to all databases. The following tutorial exercise shows you how to view user's granted privileges:
>cd \mysql\bin >mysql -u root -pretneciyf mysql> GRANT CREATE ON *.* TO DEV; Query OK, 0 rows affected (0.00 sec) mysql> REVOKE CREATE ON QA.* FROM DEV; ERROR 1141 (42000): There is no such grant defined for user 'DEV' on host '%' mysql> REVOKE CREATE ON *.* FROM DEV; Query OK, 0 rows affected (0.00 sec)
⇒ Giving User Read-only Access in MySQL
⇐ Viewing User Privileges in MySQL
2017-08-21, 3191🔥, 0💬
Popular Posts:
How To Start the Command-Line SQL*Plus in Oracle? If you Oracle server or client installed on your w...
How To Get the Definition of a Stored Procedure Back in SQL Server Transact-SQL? If you want get the...
How Many Groups of Data Types in MySQL? MySQL support 3 groups of data types as listed below: String...
How To Enter Unicode Character String Literals in SQL Server Transact-SQL? Unicode characters are mu...
What Happens If the Imported Table Already Exists in Oracle? If the import process tries to import a...