public class App extends Object
| Constructor and Description |
|---|
App() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Entry point of CLI application.
|
public static void main(String[] args) throws IOException, SQLException, InterruptedException
[Usage]
java -jar [old_database] [new_database]
[Examples]
Take diff between createtable1.sql and createtable2.sql (both of SQL files on your machine)
java -jar createtable1.sql createtable2.sql
Take diff between dbname1 and dbname2 (both of databases on the local MySQL)
java -jar dbname1 dbname2
Take diff between dbname1 and dbname2 (both of databases on remote MySQL)
java -jar '-uroot -hlocalhost dbname1' '-uroot -hlocalhost dbname2'
[Options]
-h, --help: Show usage
-v, --version: Show version
args - Options, or target of database arguments.IOException - Throw if mysqldump command is failed.SQLException - Throw if invalid SQL is given.InterruptedException - Throw if mysqldump command is failed.Copyright © 2020. All rights reserved.