|
@@ -171,7 +171,7 @@ public class MySQLDatabaseBackup {
|
|
|
sysConfigQueryWrapper.lambda().eq(SysConfig::getSchoolId, schoolId);
|
|
|
List<SysConfig> sysConfigList = sysConfigService.list(sysConfigQueryWrapper);
|
|
|
|
|
|
- String cmdarray[] = {"mysql -h" + this.host + " -P" + this.port + " -u" + this.username + " -p" + this.password + " " + this.databaseName, "source " + file.getPath()};
|
|
|
+ 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;
|
|
|
try {
|