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

Working with AWS RDS MySQL #281

Open
rgarrigue opened this issue Sep 12, 2023 · 6 comments
Open

Working with AWS RDS MySQL #281

rgarrigue opened this issue Sep 12, 2023 · 6 comments

Comments

@rgarrigue
Copy link

Hi there

We're having issue with RDS MySQL, being unable to get replibyte to dump so far. Tried as much permission as we could, on a read replica, nothing did it. Any hints ?

Thanks

@emilsivervik
Copy link

Hello,

The issue we've (I'm a colleague of @rgarrigue) been having is this

replibyte --config conf.yaml dump create
⠐ [00:00:00] [------------------------------------------------------------------------------------------------------------------------------] 0B/100.00MiB (0s)
command error: mysqldump: [Warning] Using a password on the command line interface can be insecure.
mysqldump: Couldn't execute 'FLUSH TABLES WITH READ LOCK': Access denied for user 'foo'@'%' (using password: YES) (1045)
⠙ [00:00:00] [>--------------------------------------------------------------------------------------------------------------------------] 827B/100.00MiB (17h)

I have been able to find some information about the issue and workarounds. One is to downgrade the mysqldump version and another is to add --set-gtid-purged=OFF to the connection string. I've tested adding the latter one to replibyte locally and it's running just fine when added.

I'm not sure how this would translate to amending this in replibyte but a potential solution would perhaps to add optional database options?

@evoxmusic
Copy link
Contributor

Hi @emilsivervik and @rgarrigue - indeed, a potential solution would be to add the ability to add extra options. I'm first working on dump and restore performance issues and I'll work on adding this.

@billmetangmo
Copy link

@emilsivervik how do you add --set-gtid-purged=OFF to replibyte ?

@emilsivervik
Copy link

Sorry @billmetangmo I totally missed that you wrote to me. What we did was to fork the repository and add the options to the dump command.

@billmetangmo
Copy link

Cool @emilsivervik . Is your fork available publicly ?

@emilsivervik
Copy link

@billmetangmo We added some internal build stuff also so no it's private.

I did a fork to my account which you can check you if you want to, it's the same changes as we added to our company one.

https://github.com/emilsivervik/replibyte

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

No branches or pull requests

4 participants