From: Ben Clewett Date: May 31 2007 2:20pm Subject: mysqldump not consistent List-Archive: http://lists.mysql.com/mysql/207153 Message-Id: <465ED9C1.4070709@clewett.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Dear MySql, Using 5.0.26 I am trying to get a consistent image of some tables using mysqldump. This is for replication. All my tables are InnoDB. I am using: # mysqldump h \ --master-data=1 \ --single-transaction \ I was hoping that the '--master-data=1' would report the coordinates of the bin-log when the transaction was started. But it seems to report the coordinates at the end of the dump. Therefore I am missing data. My replication (most of the time) soon crashes with something like: "Cannot add or update a child row: a foreign key constraint fails" Of course I may be doing something wrong. Would any person have a better idea of getting a consistent snapshot with correct coordinates? Many thanks, Ben.