Red Gate forums :: View topic - Does Data Compare support command line calls?
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
MySQL Data Compare
MySQL Data Compare forum

Does Data Compare support command line calls?

Search in MySQL Data Compare forum
Post new topic   Reply to topic
Jump to:  
Author Message
jjscott



Joined: 19 Mar 2013
Posts: 1

PostPosted: Tue Mar 19, 2013 7:40 pm    Post subject: Does Data Compare support command line calls? Reply with quote

I have real-time database replication enabled between two MySQL v5.5.29 databases and I need an automated method to determine if the db's are in sync. I would implement a nightly or weekly process to call the utility to verify success or failure.

Can I call the dbcompare utility from a script and parse a return code for success or failure? This would be the same as calling the native MySQL utility mysqldbcompare.exe. While I've used the latter, it's just too slow for pratical use.

Thanks
Back to top
View user's profile Send private message
Michael Christofides



Joined: 20 Apr 2011
Posts: 87
Location: Red Gate Software

PostPosted: Thu Mar 21, 2013 12:29 pm    Post subject: Reply with quote

Hello.

You can call MySQL Data Compare from the command line, by running MDC.exe from the installation directory. You can get the documentation by running:

MDC /? /v

Whilst there isn't a success/failure output (I've added your support to our feature request MSDC-27), others have used the tool to generate the deployment script for the differences and saved that to a folder each time (success would be an empty script).

We'd be interested how you find the tool.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group