Document Center
 
All Products
Search
  • Document Center
  • ApsaraDB for MongoDB
  • User Guide
  • User Guide
  • Instance connection
  • Connect to an ApsaraDB for MongoDB instance

This Product

  • This Product
  • All Products

    ApsaraDB for MongoDB:Connect to an ApsaraDB for MongoDB instance

    Document Center

    ApsaraDB for MongoDB:Connect to an ApsaraDB for MongoDB instance

    Last Updated:Mar 26, 2021

    This topic describes how to connect to an ApsaraDB for MongoDB instance.

    Connection methods

    Category Connection method
    Standalone instance
    • Connect to a standalone ApsaraDB for MongoDB instance by using DMS
    • Connect to a standalone ApsaraDB for MongoDB instance by using the mongo shell
    • Connection sample code for MongoDB drivers
    Replica set instance
    • Connect to a replica set ApsaraDB for MongoDB instance by using DMS
    • Connect to a replica set instance by using the mongo shell
    • Connection sample code for MongoDB drivers
    Sharded cluster instance
    • Connect to a sharded cluster ApsaraDB for MongoDB instance by using DMS
    • Connect to a sharded cluster ApsaraDB for MongoDB instance by using the mongo shell
    • Connection sample code for MongoDB drivers

    Common connection scenarios

    • Connect to an ApsaraDB for MongoDB instance over the Internet
    • How to connect an ECS instance to an ApsaraDB for MongoDB instance when their network types are different
    • How to connect an ECS instance to an ApsaraDB for MongoDB instance when they are in different regions
    • Connect an ECS instance with an ApsaraDB for MongoDB instance in another Alibaba Cloud account

    FAQ

    • How to troubleshoot logon issues for the mongo shell
    • How to troubleshoot database connection failures after the number of connections reaches the upper limit
    • Troubleshoot the high CPU usage of ApsaraDB for MongoDB
    • How to query and limit the number of connections
    Thank you! We've received your feedback.