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

mysqldump-php generates inconsistent snapshot of the Database! #28

Closed
sherifabdlnaby opened this issue Apr 8, 2023 · 0 comments · Fixed by #29
Closed

mysqldump-php generates inconsistent snapshot of the Database! #28

sherifabdlnaby opened this issue Apr 8, 2023 · 0 comments · Fixed by #29

Comments

@sherifabdlnaby
Copy link

I originally reported this in gdpr-dump repo Smile-SA/gdpr-dump#86 but I traced the bug mysqldump-php, I opened a bug at the old repo, as well as this seems more active fork.

When working with large databases, we noticed that generated dump is inconsistent. Some tables will include rows inserted after the dump was initiated. This problem became a dealbreaker with bigger databases.

Tracing this further, it turns out that mysqldump-php starts a transaction per table and not for the entire dump process. This is unlike the behavior of the mysqldump command.

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 a pull request may close this issue.

1 participant