You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2021/02/02 03:47:02 UTC
[shardingsphere] branch master updated: Fixed: In Windows
environment,
initialization of the embedded MySQL instance is inconsistent with the IDE
file system, resulting in failure to instantiate MySQL (#9244)
This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 0228084 Fixed: In Windows environment, initialization of the embedded MySQL instance is inconsistent with the IDE file system, resulting in failure to instantiate MySQL (#9244)
0228084 is described below
commit 0228084532ec41e13e10f7e2c2a8fa2bf13c6943
Author: AlphaPo <ju...@163.com>
AuthorDate: Tue Feb 2 11:46:27 2021 +0800
Fixed: In Windows environment, initialization of the embedded MySQL instance is inconsistent with the IDE file system, resulting in failure to instantiate MySQL (#9244)
* merge untracked file
* Fixed: In Windows environment, initialization of the embedded MySQL instance is inconsistent with the IDE file system, resulting in failure to instantiate MySQL
---
.../test/integration/env/database/MySQLEmbeddedDatabaseResource.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/src/test/java/org/apache/shardingsphere/test/integration/env/database/MySQLEmbeddedDatabaseResource.java b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/src/test/java/org/apache/shardingsphere/test/integration/env/database/MySQLEmbeddedDatabaseResource.java
index 659c02e..0003f7c 100644
--- a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/src/test/java/org/apache/shardingsphere/test/integration/env/database/MySQLEmbeddedDatabaseResource.java
+++ b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/src/test/java/org/apache/shardingsphere/test/integration/env/database/MySQLEmbeddedDatabaseResource.java
@@ -26,6 +26,8 @@ import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.shardingsphere.test.integration.env.datasource.DatabaseEnvironment;
+import java.io.File;
+
/**
* Embedded database resource for MySQL.
*/
@@ -46,6 +48,7 @@ public final class MySQLEmbeddedDatabaseResource implements EmbeddedDatabaseReso
.build();
MysqldConfig mysqldConfig = MysqldConfig.aMysqldConfig(Version.valueOf(databaseEnvironment.getDistributionVersion()))
.withCharset(Charset.UTF8MB4)
+ .withTempDir(new File(downloadConfig.getCacheDir(), "runtime").getPath())
.withPort(databaseEnvironment.getPort())
.withUser("test", "test")
.withServerVariable("bind-address", "0.0.0.0")