All Products
Search
Document Center

ApsaraDB for MongoDB:What database versions does ApsaraDB for MongoDB support?

Last Updated:Feb 17, 2025

ApsaraDB for MongoDB supports the following MongoDB versions: 7.0, 6.0, 5.0, 4.4, 4.2, 4.0, and 3.4 (discontinued). We recommend that you use a driver running the same database version as your ApsaraDB for MongoDB instance to access the instance. You can download drivers in different languages from Start Developing with MongoDB.

Note

For more information about the differences among MongoDB versions, see MongoDB versions and storage engines.

How do I view the database version of my ApsaraDB for MongoDB instance?

  1. Connect to a replica set instance by using the mongo shell. For more information, see Connect to a replica set instance by using the mongo shell.

  2. Run the following command to view the database version:

    db.version()

References

Upgrade the major version of an instance