Hi @c51a1608bd6dd1713da7ee458e75803
First of all, I’m not an expert in Java nor JDBC
but I’ll try to answer your question. Is this the JDBC driver you’re using? GitHub - mongodb/mongo-jdbc-driver: JDBC Driver for MongoDB Atlas SQL interface
If yes, I think that driver is meant for connecting to a specific setup in Atlas and not to locally deployed instances, as mentioned in the Readme file there:
The MongoDB Atlas SQL JDBC Driver provides SQL connectivity to MongoDB Atlas for client applications developed in Java.
See the Atlas SQL Documentation for more information.
This is the diagram taken from the linked page https://www.mongodb.com/docs/atlas/data-federation/query/query-with-sql/
So in the diagram, there’s Atlas → Atlas SQL Interface → JDBC driver
In my limited knowledge, JDBC is a method for Java to connect to SQL/tabular databases. MongoDB is definitely not an SQL database. If you’re looking to connect to MongoDB from Java, I think you’re looking for the MongoBD Java driver, along with the free MongoDB University course M220J MongoDB for Java Developers
Best regards
Kevin
