Skip to content
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

对于兼容mysql语法的数据库不需要这些插件 #39

Open
wuwen5 opened this issue Jun 4, 2024 · 0 comments
Open

对于兼容mysql语法的数据库不需要这些插件 #39

wuwen5 opened this issue Jun 4, 2024 · 0 comments

Comments

@wuwen5
Copy link

wuwen5 commented Jun 4, 2024

大部分兼容mysql语法的信创数据库不需要这些插件,只要吧驱动包放到plugins目录,然后正确配置驱动类就好了很简单。
例如nacos-dm-datasource-plugin-ext的实现,既然全都是空实现继承 Base*的,那么说明完全没有必要存在这个插件,除非是有不兼容的语法才需要定制插件。

我们只需要把驱动包放入plugins目录,然后配置如下

spring.datasource.platform=mysql
db.pool.config.driverClassName=dm.jdbc.driver.DmDriver
db.url.0=jdbc:dm://[ip]:[port]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant