mongodb / mongo-jdbc-driver

JDBC Driver for MongoDB Atlas SQL interface
Apache License 2.0
35 stars 33 forks source link

Error when try to connect to MongoDB #128

Closed leandroidvlab closed 1 year ago

leandroidvlab commented 1 year ago

When I try to connect in MongoDB server, I get this error:

Command failed with error 59 (CommandNotFound): 'no such command: 'sqlGetResultSchema'' on server

This is the URL connection:

jdbc:mongodb://10.1.1.53:27017/interviewTest

rychipman commented 1 year ago

Hi @leandroidvlab, the JDBC driver is currently for connecting to MongoDB Atlas SQL -- you can't use it to connect to a normal mongod or mongos. The first couple documentation links in the README will point you to some more info about what Atlas SQL is and how to use it!

leandroidvlab commented 1 year ago

Oh! Okay, thanks !