Jump to content

connect to MongoDB Atlas


Go to solution Solved by Alex Huguet Perez,

Recommended Posts

Posted

Hello.

I have an account set up on cloud.mongodb.com. I need to run some access tests to the sample_mflix databases via a jdbc access, to evaluate correct access from WebFOCUS
Using the URL that the system has provided me:

URL: jdbc:mongodb://atlas-sql-673f49308ce96e389e6bc2cb-mwxj9.a.query.mongodb.net:27017/sample_mflix

Driver name: com.mongodb.jdbc.MongoDriver

I have installed in the PATH of the file: mongodb-jdbc-2.2.0-all.jar

But I get this error message when I test the connection.

(FOC1400) SQLCODE IS -1 (HEX: FFFFFFFF) XOPEN:      
(FOC1500)  :   (0) [     ] Couldn't connect due to a timeout. Please check your 
(FOC1500)  :  hostname and port. If necessary, set a longer connection timeout in the 
(FOC1500)  :  MongoDB URI.java.sql.SQLTimeoutException: Couldn't connect due to a 
(FOC1500)  :  timeout. Please check your hostname and port. If necessary, set a 
(FOC1500)  :  longer connection timeout in the MongoDB URI.
(FOC1500)  :   getConnection failed: java.sql.SQLTimeoutException: Couldn't connect 
(FOC1500)  :  due to a timeout. Please check your hostname and port. If necessary, 
(FOC1500)  :  set a longer connection timeout in the MongoDB URI.
(FOC1500)  :    (-1) [00000] JDBFOC>> makeConnection():  ibi.ntj2c.ntjprerr: 0001     
(FOC1500)  :    0      497Couldn't connect due to a timeout. Please check your 
(FOC1405) SQL PREPARE ERROR. 

Test for Generic JDBC (SQLJDBC) failed due to prepare error:

FOC1405

 

Can someone please guide me on how to solve this problem?
Thank you very much.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...