#1 Re: mORMot 1 » Using official MongoDB Connection String » 2015-07-10 23:13:11

Hello,

I tested the MongoDB sample and it works just fine with a local MongoDB.

But I would also like to connect to a remote MongoDB on MongoLab in the following format:

"mongodb://<dbuser>:<dbpassword>@ds04542.mongolab.com:44542/mymongodb"

Does somebody have a solution or maybe a workaround for this?!

I tried a static change in Create method but as soon I assign a Database (fDB := fClient.Database['mymongodb'];) I get an exception "Query failure".

Thanks for any help...

Michael

Board footer

Powered by FluxBB