wangliang hai 1 ano
pai
achega
63f2981fab

+ 1 - 1
sop-business/src/main/java/com/qmth/sop/business/exec/MySQLExec.java

@@ -105,7 +105,7 @@ public class MySQLExec {
                 string = string.replaceAll("\\#\\{dynamicFields\\}", stringJoiner.toString());
                 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();
                 Process process = null;
                 log.info("cmdarray[0]:{}", cmdarray[0]);