mongodbdelphiunidac

Why I can not connect to mongodb from unidac?


I am trying to connect to mongodb from Devart unidac components and I supplied server name like this, I right click on the UniConnection1 and choose "connection editor" and I enter connection parameters:

Server:

cluster0-shard-00-00-xxxxx.mongodb.net

also port 27017, user name and password but I did not able to connect from Delphi although I was able to connect from mongodb compass. Any advise ?

here is the error I get

Failed to read 66321 bytes from socket within 300000 milliseconds..

I am trying to connect to MongoDB Atlas not a local server


Solution

  • I was using old version of unidac 7.1.4 whenI upgraded I was able to connect normally with also devart odbc dlls