MattMontgomeryKochava
c194df3e51
Add version comments to limit IF EXISTS clause only to versions that support it.
2022-02-13 10:18:53 -06:00
MattMontgomeryKochava
eb9305ed80
typo
2022-02-11 18:00:19 -06:00
MattMontgomeryKochava
175ad8899c
When using statement based replication in a master-master configuration
...
there exists a race condition that can break replication when dropping a user.
Ideally one would use the "sql_log_bin: no" option to avoid this but
that is not possible on Google CloudSQL instances. Adding IF EXISTS
clause to the DROP USER statement makes it replication safe without
the need to skip logging.
2022-02-11 17:53:32 -06:00
Jorge Rodriguez (A.K.A. Tiriel)
dd4700989f
Remove support for REQUIRESSL privilege ( #244 )
...
* Remove support for REQUIRESSL privilege
* Fix error search string
2021-12-01 07:56:04 +01:00
R.Sicart
727b638d13
Get rid of privs comparison ( #243 )
...
* Remove all code related to VALID_PRIVS and get_valid_privs()
* Add tests to update user with invalid privs
* Re-raise InvalidPrivsError when granting privileges
* Fix: compatibility with python2
* More explicit assertions as commented by Andersson007
* Add changelog fragment
2021-11-20 09:28:40 +01:00
Andrew Klychkov
bb3e9fd3fa
mysql_user: fix broken compatibility for priviledge aliases ( #233 )
...
* mysql_user: fix broken compatibility for priviledge aliases
* add changelog fragment
* fix changelog fragment
* Improve formatting
2021-10-18 15:25:00 +02:00
R.Sicart
0ce1fa1634
mysql_user: replace VALID_PRIVS by get_valid_privs() function ( #217 )
...
* mysql_user: replace VALID_PRIVS by get_valid_privs() function
* Add EXTRA_PRIVS in case we need to add more privs in the future
* Add changelog fragment
2021-09-23 11:53:37 +02:00
int32bit
663590689f
Fix wrong impl for mysql ( #210 )
...
If 'mariadb' in version info, the db instance should be mariadb(reverse in code) rather than mysql.
2021-08-25 09:21:24 +02:00
Andrew Klychkov
8a17e43eae
Fix sanity errors ( #206 )
2021-08-19 16:20:28 +02:00
Andrew Klychkov
ce2b269f84
mysql_role: new module ( #189 )
...
* mysql_role: new module
* fixes
* fixes
* Add the role class
* Check if role exists
* role.add()
* role.__get_members
* tmp
* tmp
* Change tests
* Fix
* Fix
* add_members()
* get_privs()
* tmp
* __extract_grants() filler version
* Before big work
* tmp
* drop()
* tmp
* tmp
* Big changes
* Fix
* append_members, detach_members, append_privs
* tmp
* admin option
* Add tests
* Add tests
* Fix tests
* Remove debug warning
* Fix tests
* Add documentation
* Fix MariaDB case
* Fix MariaDB
* Fix MariaDB
* Fix MariaDB
* Fix MariaDB
* Fix MariaDB
* Fix
* Fix
* Remove debug warning
* Add try-except block
* tmp
* tmp
* tmp
* Fix
* Add err handling
* Add user check
* Check admin in db
* Fix CI
* Fix CI
* Fix CI
* Fix CI
* Fix
* Add mutually exclusive options
* Small refactoring, documenting
* Documenting, refactoring
* Change docs
* Refactoring
* Refactoring
* Refactoring
* Add unit tests
* Update README.md
2021-08-10 13:30:34 +02:00