Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optional binlog parameters in mysql connection string #201

Conversation

mleahu
Copy link
Contributor

@mleahu mleahu commented Nov 14, 2024

The MySQL binlog parameter in dsn (connection string) is currently mandatory, but this causes errors like
Error 1227: Access denied; you need (at least one of) the SUPER, BINLOG ADMIN privilege(s) for this operation
with AWS RDS MariaDB and default admin user.

Description of your changes

Binlog parameter for Users, Grants and Databases becomes optional and does not have a default value at all.

In this way, the sql_bin_log parameter in DSN becomes optional and it is added only when binlog is explicitly set to true/false in one of the managed resources.

Fixes the side effect of #171 in AWS RDS MariaDB.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Unit tests updated and added one more to cover the new case of missing binlog.
Tested with AWS RDS Mariadb: provisioned users, databases and grants.

@Duologic Duologic merged commit 0890de0 into crossplane-contrib:master Nov 28, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants