-
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
OpenGauss Driver failed to connect shardingsphere #34925
Comments
|
Hi hengqiang
|
|
@jzs1997 Hello, I am also facing this problem. You said that your solution is to comment out the setDolphin part of the code in jdbc, so that you can use jdbc to connect to shardingsphere. Which part of the code did you comment out? |
|
Bug Report
Which version of ShardingSphere did you use?
Compiled from source code, without any modification
openGauss version: 7.0.0 compiled from latest source code
openGauss-JDBC-driver version: opengauss-jdbc-6.0.0
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-Proxy
Expected behavior
Connection Built Successfully
Actual behavior
Failed to build connection
When I tried to connect to shardingsphere via openGauss-jdbc-driver, I got this error:
Basically dolphin is an extension of openGauss which is not installed by default. And in openGauss-jdbc-driver, it will decide where to use dolphin:
Basically, if the
dolphinNum
larger than 0 it will think it needs to set dolphin, but I do not have dolphin which meansselect count(1) from pg_extension where extname = 'dolphin';
will return 0 and I checked this in my database and shardingsphere and the values returned are all 0.I am new to this. I tried to debug this but got pretty confused. Hope that I could at least got some hint on which module I should check.
Thanks!
Btw, I can connect to shardingsphere with
gsql
The text was updated successfully, but these errors were encountered: