Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the JDBC driver class name for mongodb?

Like com.mysql.jdbc.Driver in the case of mysql, what would be the JDBC driver class for mongodb?

In java code, it can be obtained as

MongoClient mongoClient = new MongoClient("localhost");

but in the case of JMeter, it requires JDBC driver class name.

like image 877
Sree Karthik S R Avatar asked Dec 22 '14 07:12

Sree Karthik S R


1 Answers

You can try and use below details as reference

JDBC Driver class name: mongodb.jdbc.MongoDriver

URL format:jdbc:mongo://<\serverName>/<\databaseName>

e.g. url="jdbc:mongo://ds029847.mongolab.com:29847/tpch";

Con = DriverManager.getConnection(url, "dbuser", "dbuser");

Hope this will help.

like image 153
Vignesh Shiv Avatar answered Sep 18 '22 20:09

Vignesh Shiv