Li'l Help Please
Li'l Help Please

Reputation: 53

How to tell what Version of MongoDB you are Running

When I look at the output from phpinfo() it states mongodb version 1.1.2.

When I run db.version() in Robomongo it states 3.2.1.

Why does phpinfo() give me a different version to that from Robomongo?

Also, how can I tell if I have the latest PHP Drivers for MongoDB?

Upvotes: 3

Views: 133

Answers (2)

Alex
Alex

Reputation: 21766

phpinfo() returns the version of your PHP Mongo driver, whereas as Robomongo is returning the version of your Mongo instance. According to GitHub, the latest release for the PHP driver is 1.1.2, so you are using the most recent PHP driver for MongoDB.

Upvotes: 0

metame
metame

Reputation: 2640

The output from phpinfo() is the PHP driver version. The db.version() in Robomongo shows the MongoDB core version.

This page provides information on the current drivers available.

As of this posting, you have the latest version of the driver and MongoDB.

Upvotes: 2

Related Questions