menghaoranss opened a new pull request #4545: Issue2010
URL: https://github.com/apache/incubator-shardingsphere/pull/4545
 
 
   Fixes #2010  .
   
   Changes proposed in this pull request:
   - support connectionInitSqls config of dbcp and druid connection pool via 
spring-boot 
   - support connectionInitSqls config of dbcp and druid while using 
orchestration
   
   
   The following configurations of `connectionInitSqls` has been verified using 
dbcp and druid connection pools:
   + springboot
   ```
   spring.shardingsphere.datasource.ds_0.connectionInitSqls=set names 
utf8mb4;,set serverTimezone=UTC;
   ```
   + yaml
   ```
   connectionInitSqls:
         - set names utf8mb4;
         - set serverTimezone=UTC;
   ```
   + namespace
   ```
   <property name="connectionInitSqls">
               <list>
                   <value>set names utf8mb4;</value>
                   <value>set serverTimezone=UTC;</value>
               </list>
   </property>
   ```
   + Using the local and zookeeper config center, the connectionInitSqls is 
uploaded to the config center as: 
   ```
   connectionInitSqls:
         - set names utf8mb4;
         - set serverTimezone=UTC;
   ```
   + Configure connectionInitSqls using only Configuration Center
   + Configure connectionInitSqls with UI
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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