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.
ansible/database
Stijn Tintel 7102503bb2 Only revoke GRANT OPTION when user actually has it
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.
12 years ago
..
mongodb_user Merge pull request #3172 from gw0/fix-mongodb2.2-compat 12 years ago
mysql_db mysql_db small fix to docs 12 years ago
mysql_user Only revoke GRANT OPTION when user actually has it 12 years ago
postgresql_db DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition) 12 years ago
postgresql_privs Docs: consistently format playbook EXAMPLES 12 years ago
postgresql_user DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition) 12 years ago
riak Fixed #3433. Using get_bin_path, removed uneeded imports, "module" is inlined, misc other style improvements. 12 years ago