mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Dynamic loading of DB driver + support for other DB providers
This commit is contained in:
parent
570b676b1f
commit
02c5d44f0b
@ -21,6 +21,7 @@ DBROOTPW=
|
||||
MSLOG=vmops.log
|
||||
APISERVERLOG=api.log
|
||||
DBHOST=localhost
|
||||
DBDRIVER=jdbc:mysql
|
||||
AGENTLOGDIR=logs
|
||||
AGENTLOG=logs/agent.log
|
||||
MSMNTDIR=/mnt
|
||||
|
||||
@ -25,6 +25,7 @@ region.id=1
|
||||
db.cloud.username=@DBUSER@
|
||||
db.cloud.password=@DBPW@
|
||||
db.cloud.host=@DBHOST@
|
||||
db.cloud.driver=@DBDRIVER@
|
||||
db.cloud.port=3306
|
||||
db.cloud.name=cloud
|
||||
|
||||
@ -56,6 +57,7 @@ db.cloud.encrypt.secret=
|
||||
db.usage.username=@DBUSER@
|
||||
db.usage.password=@DBPW@
|
||||
db.usage.host=@DBHOST@
|
||||
db.usage.driver=@DBDRIVER@
|
||||
db.usage.port=3306
|
||||
db.usage.name=cloud_usage
|
||||
|
||||
@ -69,6 +71,7 @@ db.usage.url.params=
|
||||
db.simulator.username=@DBUSER@
|
||||
db.simulator.password=@DBPW@
|
||||
db.simulator.host=@DBHOST@
|
||||
db.simulator.driver=@DBDRIVER@
|
||||
db.simulator.port=3306
|
||||
db.simulator.name=simulator
|
||||
db.simulator.maxActive=250
|
||||
|
||||
@ -26,6 +26,7 @@ db.cloud.username=cloud
|
||||
db.cloud.password=cloud
|
||||
db.root.password=
|
||||
db.cloud.host=localhost
|
||||
db.cloud.driver=jdbc:mysql
|
||||
db.cloud.port=3306
|
||||
db.cloud.name=cloud
|
||||
|
||||
@ -46,6 +47,8 @@ db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLi
|
||||
db.usage.username=cloud
|
||||
db.usage.password=cloud
|
||||
db.usage.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.usage.driver=jdbc:mysql
|
||||
db.usage.port=3306
|
||||
db.usage.name=cloud_usage
|
||||
|
||||
@ -59,6 +62,8 @@ db.usage.autoReconnect=true
|
||||
db.simulator.username=cloud
|
||||
db.simulator.password=cloud
|
||||
db.simulator.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.simulator.driver=jdbc:mysql
|
||||
db.simulator.port=3306
|
||||
db.simulator.name=simulator
|
||||
db.simulator.maxActive=250
|
||||
|
||||
@ -20,6 +20,8 @@ import java.io.Closeable;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.sql.Connection;
|
||||
import java.sql.Driver;
|
||||
import java.sql.DriverManager;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
@ -1024,6 +1026,7 @@ public class TransactionLegacy implements Closeable {
|
||||
final String cloudUsername = dbProps.getProperty("db.cloud.username");
|
||||
final String cloudPassword = dbProps.getProperty("db.cloud.password");
|
||||
final String cloudHost = dbProps.getProperty("db.cloud.host");
|
||||
final String cloudDriver = dbProps.getProperty("db.cloud.driver");
|
||||
final int cloudPort = Integer.parseInt(dbProps.getProperty("db.cloud.port"));
|
||||
final String cloudDbName = dbProps.getProperty("db.cloud.name");
|
||||
final boolean cloudAutoReconnect = Boolean.parseBoolean(dbProps.getProperty("db.cloud.autoReconnect"));
|
||||
@ -1072,10 +1075,12 @@ public class TransactionLegacy implements Closeable {
|
||||
new GenericObjectPool(null, cloudMaxActive, GenericObjectPool.DEFAULT_WHEN_EXHAUSTED_ACTION, cloudMaxWait, cloudMaxIdle, cloudTestOnBorrow, false,
|
||||
cloudTimeBtwEvictionRunsMillis, 1, cloudMinEvcitableIdleTimeMillis, cloudTestWhileIdle);
|
||||
|
||||
final ConnectionFactory cloudConnectionFactory =
|
||||
new DriverManagerConnectionFactory("jdbc:mysql://" + cloudHost + (s_dbHAEnabled ? "," + cloudSlaves : "") + ":" + cloudPort + "/" + cloudDbName +
|
||||
"?autoReconnect=" + cloudAutoReconnect + (url != null ? "&" + url : "") + (useSSL ? "&useSSL=true" : "") +
|
||||
(s_dbHAEnabled ? "&" + cloudDbHAParams : "") + (s_dbHAEnabled ? "&loadBalanceStrategy=" + loadBalanceStrategy : ""), cloudUsername, cloudPassword);
|
||||
final String cloudConnectionUri = cloudDriver + "://" + cloudHost + (s_dbHAEnabled ? "," + cloudSlaves : "") + ":" + cloudPort + "/" + cloudDbName +
|
||||
"?autoReconnect=" + cloudAutoReconnect + (url != null ? "&" + url : "") + (useSSL ? "&useSSL=true" : "") +
|
||||
(s_dbHAEnabled ? "&" + cloudDbHAParams : "") + (s_dbHAEnabled ? "&loadBalanceStrategy=" + loadBalanceStrategy : "");
|
||||
loadDbDriver(cloudConnectionUri);
|
||||
|
||||
final ConnectionFactory cloudConnectionFactory = new DriverManagerConnectionFactory(cloudConnectionUri, cloudUsername, cloudPassword);
|
||||
|
||||
final KeyedObjectPoolFactory poolableObjFactory = (cloudPoolPreparedStatements ? new StackKeyedObjectPoolFactory() : null);
|
||||
|
||||
@ -1092,6 +1097,7 @@ public class TransactionLegacy implements Closeable {
|
||||
final String usageUsername = dbProps.getProperty("db.usage.username");
|
||||
final String usagePassword = dbProps.getProperty("db.usage.password");
|
||||
final String usageHost = dbProps.getProperty("db.usage.host");
|
||||
final String usageDriver = dbProps.getProperty("db.usage.driver");
|
||||
final int usagePort = Integer.parseInt(dbProps.getProperty("db.usage.port"));
|
||||
final String usageDbName = dbProps.getProperty("db.usage.name");
|
||||
final boolean usageAutoReconnect = Boolean.parseBoolean(dbProps.getProperty("db.usage.autoReconnect"));
|
||||
@ -1100,11 +1106,12 @@ public class TransactionLegacy implements Closeable {
|
||||
final GenericObjectPool usageConnectionPool =
|
||||
new GenericObjectPool(null, usageMaxActive, GenericObjectPool.DEFAULT_WHEN_EXHAUSTED_ACTION, usageMaxWait, usageMaxIdle);
|
||||
|
||||
final ConnectionFactory usageConnectionFactory =
|
||||
new DriverManagerConnectionFactory("jdbc:mysql://" + usageHost + (s_dbHAEnabled ? "," + dbProps.getProperty("db.cloud.slaves") : "") + ":" + usagePort +
|
||||
"/" + usageDbName + "?autoReconnect=" + usageAutoReconnect + (usageUrl != null ? "&" + usageUrl : "") +
|
||||
(s_dbHAEnabled ? "&" + getDBHAParams("usage", dbProps) : "") + (s_dbHAEnabled ? "&loadBalanceStrategy=" + loadBalanceStrategy : ""), usageUsername,
|
||||
usagePassword);
|
||||
final String usageConnectionUri = usageDriver + "://" + usageHost + (s_dbHAEnabled ? "," + dbProps.getProperty("db.cloud.slaves") : "") + ":" + usagePort +
|
||||
"/" + usageDbName + "?autoReconnect=" + usageAutoReconnect + (usageUrl != null ? "&" + usageUrl : "") +
|
||||
(s_dbHAEnabled ? "&" + getDBHAParams("usage", dbProps) : "") + (s_dbHAEnabled ? "&loadBalanceStrategy=" + loadBalanceStrategy : "");
|
||||
loadDbDriver(usageConnectionUri);
|
||||
|
||||
final ConnectionFactory usageConnectionFactory = new DriverManagerConnectionFactory(usageConnectionUri, usageUsername, usagePassword);
|
||||
|
||||
final PoolableConnectionFactory usagePoolableConnectionFactory =
|
||||
new PoolableConnectionFactory(usageConnectionFactory, usageConnectionPool, new StackKeyedObjectPoolFactory(), null, false, false);
|
||||
@ -1120,6 +1127,7 @@ public class TransactionLegacy implements Closeable {
|
||||
final String simulatorUsername = dbProps.getProperty("db.simulator.username");
|
||||
final String simulatorPassword = dbProps.getProperty("db.simulator.password");
|
||||
final String simulatorHost = dbProps.getProperty("db.simulator.host");
|
||||
final String simulatorDriver = dbProps.getProperty("db.simulator.driver");
|
||||
final int simulatorPort = Integer.parseInt(dbProps.getProperty("db.simulator.port"));
|
||||
final String simulatorDbName = dbProps.getProperty("db.simulator.name");
|
||||
final boolean simulatorAutoReconnect = Boolean.parseBoolean(dbProps.getProperty("db.simulator.autoReconnect"));
|
||||
@ -1127,9 +1135,11 @@ public class TransactionLegacy implements Closeable {
|
||||
final GenericObjectPool simulatorConnectionPool =
|
||||
new GenericObjectPool(null, simulatorMaxActive, GenericObjectPool.DEFAULT_WHEN_EXHAUSTED_ACTION, simulatorMaxWait, simulatorMaxIdle);
|
||||
|
||||
final ConnectionFactory simulatorConnectionFactory =
|
||||
new DriverManagerConnectionFactory("jdbc:mysql://" + simulatorHost + ":" + simulatorPort + "/" + simulatorDbName + "?autoReconnect=" +
|
||||
simulatorAutoReconnect, simulatorUsername, simulatorPassword);
|
||||
final String simulatorConnectionUri = simulatorDriver + "://" + simulatorHost + ":" + simulatorPort + "/" + simulatorDbName + "?autoReconnect=" +
|
||||
simulatorAutoReconnect;
|
||||
loadDbDriver(simulatorConnectionUri);
|
||||
|
||||
final ConnectionFactory simulatorConnectionFactory = new DriverManagerConnectionFactory(simulatorConnectionUri, simulatorUsername, simulatorPassword);
|
||||
|
||||
final PoolableConnectionFactory simulatorPoolableConnectionFactory =
|
||||
new PoolableConnectionFactory(simulatorConnectionFactory, simulatorConnectionPool, new StackKeyedObjectPoolFactory(), null, false, false);
|
||||
@ -1147,6 +1157,16 @@ public class TransactionLegacy implements Closeable {
|
||||
}
|
||||
}
|
||||
|
||||
private static void loadDbDriver(String dbConnectionUri) {
|
||||
try {
|
||||
Driver driver = DriverManager.getDriver(dbConnectionUri);
|
||||
s_logger.debug("Successfully loaded DB driver " + driver.getClass().getName() + " for connection " + dbConnectionUri);
|
||||
} catch (SQLException e) {
|
||||
s_logger.error("Failed to load DB driver for connection " + dbConnectionUri, e);
|
||||
throw new CloudRuntimeException("Failed to load DB driver for connection " + dbConnectionUri, e);
|
||||
}
|
||||
}
|
||||
|
||||
private static String getDBHAParams(String dbName, Properties dbProps) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("failOverReadOnly=" + dbProps.getProperty("db." + dbName + ".failOverReadOnly"));
|
||||
|
||||
@ -29,6 +29,7 @@ db.cloud.username=cloud
|
||||
db.cloud.password=cloud
|
||||
db.root.password=
|
||||
db.cloud.host=localhost
|
||||
db.cloud.driver=jdbc:mysql
|
||||
db.cloud.port=3306
|
||||
db.cloud.name=cloud
|
||||
|
||||
@ -49,6 +50,8 @@ db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLi
|
||||
db.usage.username=cloud
|
||||
db.usage.password=cloud
|
||||
db.usage.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.usage.driver=jdbc:mysql
|
||||
db.usage.port=3306
|
||||
db.usage.name=cloud_usage
|
||||
|
||||
@ -62,6 +65,8 @@ db.usage.autoReconnect=true
|
||||
db.simulator.username=cloud
|
||||
db.simulator.password=cloud
|
||||
db.simulator.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.simulator.driver=jdbc:mysql
|
||||
db.simulator.port=3306
|
||||
db.simulator.name=simulator
|
||||
db.simulator.maxActive=250
|
||||
|
||||
@ -22,6 +22,7 @@ db.cloud.username=cloud
|
||||
db.cloud.password=cloud
|
||||
db.root.password=
|
||||
db.cloud.host=localhost
|
||||
db.cloud.driver=jdbc:mysql
|
||||
db.cloud.port=3306
|
||||
db.cloud.name=cloud
|
||||
|
||||
@ -42,6 +43,8 @@ db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLi
|
||||
db.usage.username=cloud
|
||||
db.usage.password=cloud
|
||||
db.usage.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.usage.driver=jdbc:mysql
|
||||
db.usage.port=3306
|
||||
db.usage.name=cloud_usage
|
||||
|
||||
@ -55,6 +58,8 @@ db.usage.autoReconnect=true
|
||||
db.simulator.username=cloud
|
||||
db.simulator.password=cloud
|
||||
db.simulator.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.simulator.driver=jdbc:mysql
|
||||
db.simulator.port=3306
|
||||
db.simulator.name=simulator
|
||||
db.simulator.maxActive=250
|
||||
|
||||
@ -21,6 +21,7 @@ DBROOTPW=
|
||||
MSLOG=vmops.log
|
||||
APISERVERLOG=api.log
|
||||
DBHOST=localhost
|
||||
DBDRIVER=jdbc:mysql
|
||||
COMPONENTS-SPEC=components-premium.xml
|
||||
REMOTEHOST=localhost
|
||||
AGENTCLASSPATH=
|
||||
|
||||
@ -21,6 +21,7 @@ DBROOTPW=
|
||||
MSLOG=vmops.log
|
||||
APISERVERLOG=api.log
|
||||
DBHOST=localhost
|
||||
DBDRIVER=jdbc:mysql
|
||||
COMPONENTS-SPEC=components-premium.xml
|
||||
REMOTEHOST=localhost
|
||||
AGENTCLASSPATH=
|
||||
|
||||
@ -25,6 +25,7 @@ region.id=1
|
||||
db.cloud.username=cloud
|
||||
db.cloud.password=ENC(vlzQjmqOV4s5q7n+S1OMbA==)
|
||||
db.cloud.host=localhost
|
||||
db.cloud.driver=jdbc:mysql
|
||||
db.cloud.port=3306
|
||||
db.cloud.name=cloud
|
||||
|
||||
@ -56,6 +57,8 @@ db.cloud.encrypt.secret=ENC(zaGuSF5a4KyWayn2t0yyjDa0HjdToVtZ)
|
||||
db.usage.password=ENC(cQEcN5aVucSYK+WUkPjDcw==)
|
||||
db.usage.username=cloud
|
||||
db.usage.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.usage.driver=jdbc:mysql
|
||||
db.usage.port=3306
|
||||
db.usage.name=cloud_usage
|
||||
|
||||
@ -69,6 +72,8 @@ db.usage.url.params=
|
||||
db.simulator.username=cloud
|
||||
db.simulator.password=cloud
|
||||
db.simulator.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.simulator.driver=jdbc:mysql
|
||||
db.simulator.port=3306
|
||||
db.simulator.name=simulator
|
||||
db.simulator.maxActive=250
|
||||
|
||||
@ -21,6 +21,7 @@ DBROOTPW=
|
||||
MSLOG=vmops.log
|
||||
APISERVERLOG=api.log
|
||||
DBHOST=localhost
|
||||
DBDRIVER=jdbc:mysql
|
||||
COMPONENTS-SPEC=components-premium.xml
|
||||
REMOTEHOST=localhost
|
||||
AGENTCLASSPATH=
|
||||
|
||||
@ -21,6 +21,7 @@ DBROOTPW=
|
||||
MSLOG=vmops.log
|
||||
APISERVERLOG=api.log
|
||||
DBHOST=localhost
|
||||
DBDRIVER=jdbc:mysql
|
||||
COMPONENTS-SPEC=components-premium.xml
|
||||
REMOTEHOST=localhost
|
||||
AGENTCLASSPATH=
|
||||
|
||||
@ -21,6 +21,7 @@ DBROOTPW=
|
||||
MSLOG=vmops.log
|
||||
APISERVERLOG=api.log
|
||||
DBHOST=localhost
|
||||
DBDRIVER=jdbc:mysql
|
||||
COMPONENTS-SPEC=components-premium.xml
|
||||
REMOTEHOST=localhost
|
||||
AGENTCLASSPATH=
|
||||
|
||||
@ -27,6 +27,7 @@ db.cloud.username=cloud
|
||||
db.cloud.password=cloud
|
||||
db.root.password=
|
||||
db.cloud.host=localhost
|
||||
db.cloud.driver=jdbc:mysql
|
||||
db.cloud.port=3306
|
||||
db.cloud.name=cloud
|
||||
|
||||
@ -47,6 +48,8 @@ db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLi
|
||||
db.usage.username=cloud
|
||||
db.usage.password=cloud
|
||||
db.usage.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.usage.driver=jdbc:mysql
|
||||
db.usage.port=3306
|
||||
db.usage.name=cloud_usage
|
||||
|
||||
@ -60,6 +63,8 @@ db.usage.autoReconnect=true
|
||||
db.simulator.username=cloud
|
||||
db.simulator.password=cloud
|
||||
db.simulator.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.simulator.driver=jdbc:mysql
|
||||
db.simulator.port=3306
|
||||
db.simulator.name=simulator
|
||||
db.simulator.maxActive=250
|
||||
|
||||
@ -22,6 +22,7 @@ db.cloud.username=cloud
|
||||
db.cloud.password=cloud
|
||||
db.root.password=
|
||||
db.cloud.host=localhost
|
||||
db.cloud.driver=jdbc:mysql
|
||||
db.cloud.port=3306
|
||||
db.cloud.name=cloud
|
||||
|
||||
@ -42,6 +43,8 @@ db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLi
|
||||
db.usage.username=cloud
|
||||
db.usage.password=cloud
|
||||
db.usage.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.usage.driver=jdbc:mysql
|
||||
db.usage.port=3306
|
||||
db.usage.name=cloud_usage
|
||||
|
||||
@ -55,6 +58,8 @@ db.usage.autoReconnect=true
|
||||
db.simulator.username=cloud
|
||||
db.simulator.password=cloud
|
||||
db.simulator.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.simulator.driver=jdbc:mysql
|
||||
db.simulator.port=3306
|
||||
db.simulator.name=simulator
|
||||
db.simulator.maxActive=250
|
||||
|
||||
@ -26,6 +26,7 @@ db.cloud.username=cloud
|
||||
db.cloud.password=cloud
|
||||
db.root.password=
|
||||
db.cloud.host=localhost
|
||||
db.cloud.driver=jdbc:mysql
|
||||
db.cloud.port=3306
|
||||
db.cloud.name=cloud
|
||||
|
||||
@ -46,6 +47,8 @@ db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLi
|
||||
db.usage.username=cloud
|
||||
db.usage.password=cloud
|
||||
db.usage.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.usage.driver=jdbc:mysql
|
||||
db.usage.port=3306
|
||||
db.usage.name=cloud_usage
|
||||
|
||||
@ -59,6 +62,8 @@ db.usage.autoReconnect=true
|
||||
db.simulator.username=cloud
|
||||
db.simulator.password=cloud
|
||||
db.simulator.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.simulator.driver=jdbc:mysql
|
||||
db.simulator.port=3306
|
||||
db.simulator.name=simulator
|
||||
db.simulator.maxActive=250
|
||||
|
||||
@ -27,6 +27,7 @@ db.cloud.username=cloud
|
||||
db.cloud.password=cloud
|
||||
db.root.password=
|
||||
db.cloud.host=localhost
|
||||
db.cloud.driver=jdbc:mysql
|
||||
db.cloud.port=3306
|
||||
db.cloud.name=cloud
|
||||
|
||||
@ -47,6 +48,8 @@ db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLi
|
||||
db.usage.username=cloud
|
||||
db.usage.password=cloud
|
||||
db.usage.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.usage.driver=jdbc:mysql
|
||||
db.usage.port=3306
|
||||
db.usage.name=cloud_usage
|
||||
|
||||
@ -60,6 +63,8 @@ db.usage.autoReconnect=true
|
||||
db.simulator.username=cloud
|
||||
db.simulator.password=cloud
|
||||
db.simulator.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.simulator.driver=jdbc:mysql
|
||||
db.simulator.port=3306
|
||||
db.simulator.name=simulator
|
||||
db.simulator.maxActive=250
|
||||
|
||||
@ -27,6 +27,7 @@ db.cloud.username=cloud
|
||||
db.cloud.password=cloud
|
||||
db.root.password=
|
||||
db.cloud.host=localhost
|
||||
db.cloud.driver=jdbc:mysql
|
||||
db.cloud.port=3306
|
||||
db.cloud.name=cloud
|
||||
|
||||
@ -47,6 +48,8 @@ db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLi
|
||||
db.usage.username=cloud
|
||||
db.usage.password=cloud
|
||||
db.usage.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.usage.driver=jdbc:mysql
|
||||
db.usage.port=3306
|
||||
db.usage.name=cloud_usage
|
||||
|
||||
@ -60,6 +63,8 @@ db.usage.autoReconnect=true
|
||||
db.simulator.username=cloud
|
||||
db.simulator.password=cloud
|
||||
db.simulator.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.simulator.driver=jdbc:mysql
|
||||
db.simulator.port=3306
|
||||
db.simulator.name=simulator
|
||||
db.simulator.maxActive=250
|
||||
|
||||
@ -83,7 +83,7 @@
|
||||
</dependencies>
|
||||
<configuration>
|
||||
<driver>org.gjt.mm.mysql.Driver</driver>
|
||||
<url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}/cloud</url>
|
||||
<url>${db.cloud.driver}://${db.cloud.host}:${db.cloud.port}/cloud</url>
|
||||
<username>${db.cloud.username}</username>
|
||||
<password>${db.cloud.password}</password>
|
||||
<!--all executions are ignored if -Dmaven.test.skip=true -->
|
||||
|
||||
@ -83,7 +83,7 @@
|
||||
</dependencies>
|
||||
<configuration>
|
||||
<driver>org.gjt.mm.mysql.Driver</driver>
|
||||
<url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}/cloud</url>
|
||||
<url>${db.cloud.driver}://${db.cloud.host}:${db.cloud.port}/cloud</url>
|
||||
<username>${db.cloud.username}</username>
|
||||
<password>${db.cloud.password}</password>
|
||||
<!--all executions are ignored if -Dmaven.test.skip=true -->
|
||||
|
||||
@ -83,7 +83,7 @@
|
||||
</dependencies>
|
||||
<configuration>
|
||||
<driver>org.gjt.mm.mysql.Driver</driver>
|
||||
<url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}/cloud</url>
|
||||
<url>${db.cloud.driver}://${db.cloud.host}:${db.cloud.port}/cloud</url>
|
||||
<username>${db.cloud.username}</username>
|
||||
<password>${db.cloud.password}</password>
|
||||
<!--all executions are ignored if -Dmaven.test.skip=true -->
|
||||
|
||||
@ -19,6 +19,7 @@
|
||||
db.usage.username=@DBUSER@
|
||||
db.usage.password=@DBPW@
|
||||
db.usage.host=@DBHOST@
|
||||
db.usage.driver=@DBDRIVER@
|
||||
db.usage.port=3306
|
||||
db.usage.name=cloud_usage
|
||||
|
||||
|
||||
@ -26,6 +26,7 @@ db.cloud.username=cloud
|
||||
db.cloud.password=cloud
|
||||
db.root.password=
|
||||
db.cloud.host=localhost
|
||||
db.cloud.driver=jdbc:mysql
|
||||
db.cloud.port=3306
|
||||
db.cloud.name=cloud
|
||||
|
||||
@ -46,6 +47,8 @@ db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLi
|
||||
db.usage.username=cloud
|
||||
db.usage.password=cloud
|
||||
db.usage.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.usage.driver=jdbc:mysql
|
||||
db.usage.port=3306
|
||||
db.usage.name=cloud_usage
|
||||
|
||||
@ -59,6 +62,8 @@ db.usage.autoReconnect=true
|
||||
db.simulator.username=cloud
|
||||
db.simulator.password=cloud
|
||||
db.simulator.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.simulator.driver=jdbc:mysql
|
||||
db.simulator.port=3306
|
||||
db.simulator.name=simulator
|
||||
db.simulator.maxActive=250
|
||||
|
||||
@ -29,6 +29,7 @@ db.cloud.username=cloud
|
||||
db.cloud.password=cloud
|
||||
db.root.password=
|
||||
db.cloud.host=localhost
|
||||
db.cloud.driver=jdbc:mysql
|
||||
db.cloud.port=3306
|
||||
db.cloud.name=cloud
|
||||
|
||||
@ -49,6 +50,8 @@ db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLi
|
||||
db.usage.username=cloud
|
||||
db.usage.password=cloud
|
||||
db.usage.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.usage.driver=jdbc:mysql
|
||||
db.usage.port=3306
|
||||
db.usage.name=cloud_usage
|
||||
|
||||
@ -62,6 +65,8 @@ db.usage.autoReconnect=true
|
||||
db.simulator.username=cloud
|
||||
db.simulator.password=cloud
|
||||
db.simulator.host=localhost
|
||||
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
|
||||
db.simulator.driver=jdbc:mysql
|
||||
db.simulator.port=3306
|
||||
db.simulator.name=simulator
|
||||
db.simulator.maxActive=250
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user