SilenceDevelopers opened a new issue, #33523:
URL: https://github.com/apache/shardingsphere/issues/33523

   my yaml:
   `spring:
     application:
       name: cola-consumer
     datasource:
       driver-class-name: org.apache.shardingsphere.driver.ShardingSphereDriver
       url: jdbc:shardingsphere:classpath:sharding.yaml`
   
   my sharding.yaml:
   `dataSources:
     ds_0:
       driverClassName: com.mysql.cj.jdbc.Driver
       dataSourceClassName: com.alibaba.druid.pool.DruidDataSource
       url: 
jdbc:mysql://192.168.78.201:3306/tb_order?useUnicode=true&characterEncoding=utf-8&useSSL=false
       username: root
       password: 123456
     ds_1:
       driverClassName: com.mysql.cj.jdbc.Driver
       dataSourceClassName: com.alibaba.druid.pool.DruidDataSource
       url: 
jdbc:mysql://192.168.78.201:3307/tb_order?useUnicode=true&characterEncoding=utf-8&useSSL=false
       username: root
       password: 123456
   
   
   rules:
     - !SHARDING
       tables:
         sharding_order:
           actualDataNodes: ds.sharding_order_${0..1}
           databaseStrategy: # 分库策略,缺省表示使用默认分库策略,以下的分片策略只能选其一
             none:
           tableStrategy:
             standard:
               shardingColumn: id
               shardingAlgorithmName: table_inline
       shardingAlgorithms:
         table_inline: # 分表策略
           type: INLINE
           props:
             # strategy: STANDARD
             algorithm-expression: sharding_order_$->{id % 2 + 1}
     - !READWRITE_SPLITTING
       dataSources:
         ds:
           writeDataSourceName: ds_0
           readDataSourceNames:
             - ds_1
           loadBalancerName: round-robin
       loadBalancers:
         round-robin:
           type: RANDOM
   
   props:
     sql-show: true
   
   transaction:
     defaultType: BASE
     providerType: Seata
   `
   my undo_logs:
   
![微信图片_20241104054328](https://github.com/user-attachments/assets/23e1ebc1-0418-44c3-a70c-a7c180281762)
   
![微信图片_20241104054336](https://github.com/user-attachments/assets/585d597d-51c5-45cd-9ca1-9656cd727e60)
   
   when I start up,  the error is :Error creating bean with name 'dataSource' 
defined in class path resource 
[org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]:
 Table or view 'undo_log' does not exist.
   
   my datasource is dataSourceClassName
   
   I don't know why


-- 
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-unsubscr...@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to