瀏覽代碼

db_log修改

wangliang 1 年之前
父節點
當前提交
63f2981fab
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sop-business/src/main/java/com/qmth/sop/business/exec/MySQLExec.java

+ 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]);