mysqldump: Got error: 1556: You can't use locks with log tables when using LOCK TABLES #244
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#244
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
Backup all MySQL databases.
Steps to reproduce (if a bug)
Actual behavior (if a bug)
Expected behavior (if a bug)
Should dump database without an error
Other notes / implementation ideas
mysqldump version 10.17 fixed the issue. I think there's an mechanism introduced in that version to prevent this from happening. We should probably notify users of this (updating mysqldump).
Environment
borgmatic version:
1.4.9
borgmatic installation method:
pip3
Borg version:
1.1.10
Python version:
3.6.8
operating system and version:
Ubuntu 18.04.3 LTS
Thank you for taking the time to file this. Feedback like this on using new features is super helpful.
Do you happen to have a link to the changelog / release notes of the fixed issue? Or a resource with recommendations on the right locking flags to use? I'm only coming up with StackOverflow posts like this one. I'd be happy to add some info or a link to the docs.. I just want to make sure I don't lead folks astray, as I'm not that familiar with MySQL myself!
I can't find changelog for mysqldump. I tested that 10.16 has the bug and 10.17 doesn't. I don't really think we should disable locking tables because I guess it will lead to an inconsistent dump.
Maybe then it would be enough to point users at
--single-transaction
?Well, I added some info about this to the docs: https://torsion.org/borgmatic/docs/how-to/backup-your-databases/#troubleshooting .. Hope that does it.
Thanks again!