mybatis / mybatis-3

MyBatis SQL mapper framework for Java
http://mybatis.github.io/mybatis-3/
Apache License 2.0
19.73k stars 12.83k forks source link

Connect to Huawei Cloud guassdb #2997

Open 415212048 opened 11 months ago

415212048 commented 11 months ago

MyBatis version

3.x.x

Database vendor and version

Huawei Cloud guassdb

Test case or example project

Steps to reproduce

Expected result

Connect to Huawei Cloud guassdb

Actual result

harawata commented 11 months ago

Hello @415212048 ,

There is not enough information for us to proceed. If there is a problem, please provide the details (stack trace, error message, etc.).

415212048 commented 11 months ago

Currently, it does not have the ability to connect to Huawei Cloud's guassdb database. We hope to expand and supplement it in the future

harawata commented 11 months ago

I couldn't find "guassdb", so I assumed you meant "GaussDB".


MyBatis uses JDBC API to access databases, so if there is a JDBC driver for GaussDB, you should be able to use MyBatis.

Their doc says ...

You can download the JDBC or ODBC driver provided by GaussDB(DWS) from the management console

GaussDB(DWS) also supports open-source JDBC and ODBC drivers: PostgreSQL JDBC 9.3-1103 or later

The following page explains the configuration details, I think. https://support.huaweicloud.com/intl/en-us/mgtg-dws/dws_01_0077.html

If you have difficulties, please post the configuration you used and explain "how it does not work" (stack trace, error message, etc.).