KomachiSion edited a comment on issue #1799: How to configure the 
initialization parameters of the connection pool?
URL: 
https://github.com/apache/incubator-shardingsphere/issues/1799#issuecomment-457490659
 
 
   Properties of connection pool can set by append **properties name** or **set 
method name** to `sharding.jdbc.datasource.${dsName}` like this:
   ```
   sharding.jdbc.datasource.master.type=com.alibaba.druid.pool.DruidDataSource
   sharding.jdbc.datasource.master.driver-class-name=com.mysql.jdbc.Driver
   
sharding.jdbc.datasource.master.url=jdbc:mysql://localhost:3306/demo_ds_0?useSSL=false
   sharding.jdbc.datasource.master.max-active=32
   sharding.jdbc.datasource.master.min-idle=5
   sharding.jdbc.datasource.master.username=root
   sharding.jdbc.datasource.master.password=
   ```
   or
   ```
   sharding.jdbc.datasource.master.type=com.alibaba.druid.pool.DruidDataSource
   sharding.jdbc.datasource.master.driver-class-name=com.mysql.jdbc.Driver
   
sharding.jdbc.datasource.master.url=jdbc:mysql://localhost:3306/demo_ds_0?useSSL=false
   sharding.jdbc.datasource.master.maxActive=32
   sharding.jdbc.datasource.master.minIdle=5
   sharding.jdbc.datasource.master.username=root
   sharding.jdbc.datasource.master.password=
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to