-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to change the dataSource to Druid on Shardingsphere JDBC5.4.0? #28779
Comments
i also try to find answer at official document 、blog 、github issuses , i found nothing about this. |
user表没有配置规则, 说明是单表,不需要分库,加入以下配置rules:
- !SINGLE
tables:
- test.user # 加载指定库指定单表 https://shardingsphere.apache.org/document/current/cn/user-manual/shardingsphere-jdbc/yaml-config/rules/single/ |
谢谢,按照你提醒的配置了单表以后确实程序能正常运行了,但是我之前看官方文档说是如果表不需要分库分表不需要单独配置呀?现在是变了吗? 如果只有部分数据库分库分表,是否需要将不分库分表的表也配置在分片规则中? |
5.4应该是更新了 |
|
|
|
Hello, may I know what bug it is? I also plan to use ShardingSphere 5.4.1 with Alibaba Druid... |
|
Get it, Thank you. I will review the issues submitted in the recent period. |
Question
i try to use Shardingsphere JDBC 5.4.0 with Druid datasource in a springboot project, but it's not woking.
my application.yml
my shardingJdbc.yml
my pom.xml
the running log
i only config a singe datasource of druid , but every time i try to use a database connection the druid and hikari are both inited,
why hikari datasource inited? how to disable it? and the table
user
is truly exsit, but why sql execute error and print 'Cause: java.sql.SQLException: Table 'user' doesn't exist'?the project is here
thank you!
The text was updated successfully, but these errors were encountered: