You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/07/05 03:00:28 UTC
[GitHub] [shardingsphere] RaigorJiang commented on pull request #11140: For #11100 , add additional properties to create data source.
RaigorJiang commented on pull request #11140:
URL: https://github.com/apache/shardingsphere/pull/11140#issuecomment-873746513
> I am a little confused,
>
> * Except for `SSL` and `timeZone`, will we have other props?
> * How to use these two props to set dataSource
> * Are they similar to `readOnly` and other props?
- Yes, users can define any other properties for JDBC connector. Refer to [MySQL:configuration-properties](https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-configuration-properties.html)
- For example : ```ADD RESOURCE resource_0 (
HOST=127.0.0.1,
PORT=3306,
DB=db0,
USER=root,
PASSWORD=root,
PROPERTIES("useSSL"="false","serverTimezone"="UTC", "tinyInt1isBit"="false"));```
- No, `readOnly` is a prop for `HikariDataSource`, as well as `maxPoolSize`, not for `JDBC Connection`.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org