shining-stars-lk commented on issue #33590:
URL:
https://github.com/apache/shardingsphere/issues/33590#issuecomment-2467068132
## ProjectConfiguration
spring.datasource.driver-class-name =
org.apache.shardingsphere.driver.ShardingSphereDriver
spring.datasource.url = jdbc:shardingsphere:classpath:local/sharding.yaml
spring.datasource.type = com.alibaba.druid.pool.DruidDataSource
## shardingproxyConfiguration
ds_0:
url:
jdbc:postgresql://192.168.12.242:6432/mocirelog?currentSchema=mocirelog
username: xxx
password: xxx
connectionTimeoutMilliseconds: 30000
idleTimeoutMilliseconds: 60000
maxLifetimeMilliseconds: 1800000
maxPoolSize: 50
minPoolSize: 1
rules:
- !SHARDING
tables:
mcr_rongcloud_message_history:
actualDataNodes: ds_0.mcr_rongcloud_message_history_$->{0..1}
tableStrategy:
standard:
shardingColumn: object_id
shardingAlgorithmName: crc32_mod
shardingAlgorithms:
crc32_mod:
type: CRC32_MOD
## databaseInformation
The real database to connect to is Vastbase, connecting to mysql is fine,
but connecting to Vastbase is an error
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]