gaochenfeng opened a new issue #2345: sharding-proxy 1046 - No database selected
URL: https://github.com/apache/incubator-shardingsphere/issues/2345
 
 
   schemaName: sharding_db
   dataSources:
    ds_0:
      url: jdbc:mysql://127.0.0.1:3306/eshop?serverTimezone=UTC&useSSL=false
      username: root
      password: 123456
      autoCommit: true
      connectionTimeout: 30000
      idleTimeout: 60000
      maxLifetime: 1800000
      maximumPoolSize: 50
   shardingRule:
    tables:
      t_order:
        actualDataNodes: ds_0.t_order_${0..3}
        tableStrategy:
          inline:
            shardingColumn: order_id
            algorithmExpression: t_order_${order_id % 4}
        keyGeneratorColumnName: order_id   
    bindingTables:
      - t_order
    defaultDatabaseStrategy:
      none:
    defaultTableStrategy:
      none:
    defaultKeyGeneratorClassName: 
io.shardingsphere.core.keygen.DefaultKeyGenerator
   

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