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, 3378🔥, 0💬
Popular Posts:
Where to find MySQL database server tutorials? Here is a collection of tutorials, tips and FAQs for ...
How to check if two JSON values have overlaps using the JSON_OVERLAPS() function? JSON_OVERLAPS(json...
What is dba.FYIcenter.com Website about? dba.FYIcenter.com is a Website for DBAs (database administr...
How To Escape Special Characters in SQL statements in MySQL? There are a number of special character...
How To Drop an Index in Oracle? If you don't need an existing index any more, you should delete it w...