cancel
Showing results for 
Search instead for 
Did you mean: 

Can we successfully connect to Mongo DB(No SQL db) from ready api?

Highlighted
New Contributor

Can we successfully connect to Mongo DB(No SQL db) from ready api?

Can you list down the options of how can we connect?

 

And the steps with screenshots for each option to connect.

1 REPLY

Re: Can we successfully connect to Mongo DB(No SQL db) from ready api?

Hi,

 

Thank you for posting on our forum. You can try the following steps:

 

You can download the JDBC Driver for MongoDB from here:
http://www.unityjdbc.com/mongojdbc/mongo_jdbc.php

 

The class name and an example of a connection string are below.
JDBC Driver class name: mongodb.jdbc.MongoDriver
URL format: jdbc:mongo://<serverName>/<databaseName>

 

After you copy the downloaded driver to the "C:\Program Files\SmartBear\ReadyAPI-1.8.0\bin\ext" folder, you need to add the driver properties below to the "File -> Preferences -> JDBC Driver Properties" preferences (https://www.soapui.org/getting-started/soapui-interface/preferences-and-settings.html#JDBC-Drivers-P...):
Driver: MongoDB/mongodb.jdbc.MongoDriver
Connection String Template: jdbc:mongo://<HOST:0.0.0.0>:<PORT:0000>/<DB>?user=user&password=password (change a host, port, username and password here to your credentials)

 

Close and reopen Ready API

 

Hope this helps.

 

Best,

Lakshmi

-------------Lakshmi

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
Watch a new Video
Top Kudoed Authors