You can automate schema comparison and synchronization using the command line.
Click Start, and type cmd in the Run line. Press ENTER. The Command Prompt opens.
Type a path to the schemacompare.com file, located in dbForge Schema Compare for MySQL installation folder on your PC, and press the space bar.
Type all the arguments (actions you want to run) in the Command Prompt. You can do this in three ways:
a. Type all the arguments directly in the Command Prompt, for example:
/schemacompare /source host:<server_name> database:<database_name> [port:<port>] user:<user_name> [password:<password>] [charset:<charset>] /target host:<server_name> database:<database_name> [port:<port>] user:<user_name> password:<password> [charset:<charset>]
b. Specify a path to a previously saved comparison document to use the connection settings along with the comparison settings specified in the document.
c. Type the path to a previously generated file with required command line arguments (see below how to prepare the file), for example:
Type additional parameters that are not specified in the file into the Command Prompt, for example:
C:\Program Files\Devart\dbForge Schema Compare for MySQL>schemacompare.com /argfile:file_name.txt /schemacompare /sync
Tip: To see a quick help on the arguments available in the command line, type the following:
Press ENTER to run the process.
/schemacompare /source connection:"host:host_name;port:port;user:user_name;password:password;database:database_name" /target connection:"host:host_name;port:port;user:user_name;password:password;database:database_name"
You can also use the Schema Comparison Document that already contains Source and Target connection strings.