Search code examples
phpmongodbversiondrivers

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?


Solution

  • 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.