Baidu AI Cloud
中国站

百度智能云

Cloud Database MONGODB

Connect to an Instance

Check the Whitelist

After the MongoDB instance is created, you need to set up the white list management page in the instance details to set up the IP white list of the instance to allow access to the instance by partially trusted external devices. Make sure that the IP of CVM Server that linked to instances connect to the instance's IP access whitelist. Please refer to the Whitelist Management for details.

Mongo Shell Connection

Baidu AI database DocDB for MongoDB can be connected through Mongo Shell. The operation steps are as follows:

  1. Log in Baidu AI Cloud database DocDB for MongoDB console.
  2. Click the target instance ID to enter the basic information.
  3. Connect related connection information displaying nodes.
  4. Log in to the bcc under the same VPC with the Baidu AI Cloud database DocDB for MongoDB instance, and connect with the mongo command.

mongo --host 6tI8eK0.bce.qa.sandbox.baidu.com --port 27017 -u root -p 123456 --authenticationDatabase admin

Previous
Manage Instance
Next
Monitoring and Alarm