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 2020/02/04 02:53:55 UTC

[GitHub] [incubator-shardingsphere] KomachiSion edited a comment on issue #3964: Hintmanager databaseShardingOnly problem

KomachiSion edited a comment on issue #3964: Hintmanager  databaseShardingOnly problem
URL: https://github.com/apache/incubator-shardingsphere/issues/3964#issuecomment-581717998
 
 
   > @KomachiSion
   > 
   > ```yaml
   > spring:
   >   shardingsphere:
   >     props:
   >       sql:
   >         show: true
   >     sharding:
   >       default-database-strategy:
   >         hint:
   >           algorithm-class-name: com.a.b.c.OrderShardingAlgorithm
   >     datasource:
   >       names: dsa,dsb
   >       dsa:
   >         pool-name: dsa
   >         type: com.zaxxer.hikari.HikariDataSource
   >         driverClassName: com.mysql.jdbc.Driver
   >         jdbcUrl: xxx
   >         username: xxx
   >         password: xxx
   >       dsb:
   >         pool-name: dsb
   >         type: com.zaxxer.hikari.HikariDataSource
   >         driverClassName: com.mysql.jdbc.Driver
   >         jdbcUrl: xxx
   >         username: xxx
   >         password: xxx
   > ```
   
   Did you shard tables? If no sharding table info, the routing will use Unicast routing.

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


With regards,
Apache Git Services