MySQL Forums
Forum List  »  Newbie

Import with rollback
Posted by: Robert Ryan
Date: January 16, 2015 02:31PM

Hi,

I'm trying to move some data from one schema to a different schema on another server. I'm using mysqldump with --no-create-info to get just the data, but when I import that into the new schema I'm getting a primary key collision.

So my question is, using that workflow, how do I wrap the mysqldump file in a transaction or something so that when it fails it rollsback any changes it has made?

Thank you!

Options: ReplyQuote


Subject
Written By
Posted
Import with rollback
January 16, 2015 02:31PM
January 17, 2015 04:04PM
January 17, 2015 06:54PM
January 19, 2015 01:01PM
January 19, 2015 01:45PM
January 19, 2015 09:30PM
January 19, 2015 12:33PM
January 19, 2015 12:54PM
January 19, 2015 01:01PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.