mirror of https://github.com/ansible/ansible.git
Mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
When revoking privileges from a user, the GRANT OPTION is always revoked, even if the user doesn't have it. If the user exists, this doesn't give an error, but if the user doesn't exist, it does: mysql> GRANT ALL ON test.* TO 'test'@'localhost'; Query OK, 0 rows affected (0.00 sec) mysql> REVOKE GRANT OPTION ON test.* FROM 'test'@'localhost'; Query OK, 0 rows affected (0.00 sec) mysql> REVOKE GRANT OPTION ON test.* FROM 'test'@'localhost'; Query OK, 0 rows affected (0.00 sec) mysql> REVOKE ALL ON test.* FROM 'test'@'localhost'; Query OK, 0 rows affected (0.00 sec) mysql> REVOKE GRANT OPTION ON test.* FROM 'test'@'localhost'; ERROR 1141 (42000): There is no such grant defined for user 'test' on host 'localhost' Additionally, in MySQL 5.6 this breaks replication because of http://bugs.mysql.com/bug.php?id=68892. Rather than revoking the GRANT OPTION and catching the error, check if the user actually has it and only revoke it when he does. |
13 years ago | |
|---|---|---|
| cloud | 13 years ago | |
| commands | 13 years ago | |
| database | 13 years ago | |
| files | 13 years ago | |
| internal | 13 years ago | |
| inventory | 13 years ago | |
| messaging | 13 years ago | |
| monitoring | 13 years ago | |
| net_infrastructure | 13 years ago | |
| network | 13 years ago | |
| notification | 13 years ago | |
| packaging | 13 years ago | |
| source_control | 13 years ago | |
| system | 13 years ago | |
| utilities | 13 years ago | |
| web_infrastructure | 13 years ago | |