RaigorJiang commented on issue #21874:
URL: 
https://github.com/apache/shardingsphere/issues/21874#issuecomment-1299644788

   @jlovej You need to understand what each configuration you write means
   
   <img width="844" alt="image" 
src="https://user-images.githubusercontent.com/5668787/199412874-05261578-b0a4-456d-a298-35cd11326022.png";>
   
   1. Logic table name should be the same with what in your SQL statement. 
(sys_shop_user)
   2. Where is ds-${0..3}? You just configured `ds-0, ds-hla, ds-hlm, ds-ncl`
   3. ShardingAlgorithmName is a refference of one of `sharding-algorithms`, 
may be `database-tenant` or `database-default`.
   
   Here is another example of `CLASS_BASED` sharding algorithm:
   
https://github.com/apache/shardingsphere/blob/master/examples/shardingsphere-jdbc-example/single-feature-example/extension-example/custom-sharding-algortihm-example/class-based-sharding-algorithm-example/class-based-sharding-raw-jdbc-example/src/main/resources/META-INF/sharding-databases.yaml
   
   If you still need help, please paste the text configuration, and think about 
how the person helping you will edit the picture.
   


-- 
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]

Reply via email to