I'm trying to run mysqldump to create a database snapshot, and I'm finding it will randomly stop midway, without reporting any error. My database is relatively small (about 100MB) and is using InnoDB.
I'm running it like:
mysqldump --force --single-transaction --quick --user myuser --password=mypass -h mydatabasehost mydb > /tmp/snapshot.sql
Checking the exit code reports 0.
My version is: mysqldump Ver 10.13 Distrib 5.1.52, for redhat-linux-gnu (i386)
I've seen some similar posts and even an official bug report, but neither solutions seem to apply.
How to I get mysqldump to take a complete database snapshot?
EDIT: My database currently resides on Amazon's RDS.
--force
param to see what error you get? Or--quick
?