|
@@ -105,7 +105,7 @@ public class MySQLExec {
|
|
string = string.replaceAll("\\#\\{dynamicFields\\}", stringJoiner.toString());
|
|
string = string.replaceAll("\\#\\{dynamicFields\\}", stringJoiner.toString());
|
|
IOUtils.write(string.getBytes(StandardCharsets.UTF_8), new FileOutputStream(file));
|
|
IOUtils.write(string.getBytes(StandardCharsets.UTF_8), new FileOutputStream(file));
|
|
|
|
|
|
- String cmdarray[] = {"mysql -h" + this.host + " -P" + this.port + " -u" + this.username + " -p" + this.password + " " + this.databaseName + "source " + file.getAbsolutePath()};
|
|
|
|
|
|
+ String cmdarray[] = {"mysql -h" + this.host + " -P" + this.port + " -u" + this.username + " -p" + this.password + " " + this.databaseName, "source " + file.getAbsolutePath()};
|
|
Runtime runtime = Runtime.getRuntime();
|
|
Runtime runtime = Runtime.getRuntime();
|
|
Process process = null;
|
|
Process process = null;
|
|
log.info("cmdarray[0]:{}", cmdarray[0]);
|
|
log.info("cmdarray[0]:{}", cmdarray[0]);
|