You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/01/25 08:13:08 UTC

[GitHub] KomachiSion commented on issue #1799: How to configure the initialization parameters of the connection pool?

KomachiSion commented 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 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:
users@infra.apache.org


With regards,
Apache Git Services