Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String command = mySqlPath + "mysql.exe";
- String user = "-u " + settings.dbUser;
- String password = "-p" + settings.dbPassword;
- String db = settings.dbDatabase;
- String inputFile = filePath + mySqlDumpFile;
- String combined = command + " " + user + " " + password + " " + db + " < " + inputFile;
- ExternalCommandExecuter ece = new ExternalCommandExecuter(combined);
- int code = ece.execute();
- C:softwaremysql5binmysql.exe -u root -p<password>
- db_name < C:softwaretomcat7webappsROOTWEB-INFdocumentsdump-1461789460425.sql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement