tencent cloud

Feedback

Database Problems in MongoDB 3.6

Last updated: 2024-01-15 14:49:56

    Problem Description

    If you drop a database and then create a new database with the same name in a TencentDB for MongoDB 3.6 instance repeatedly, the error "database does not exist" may occur when you read from, write to, or drop this database as shown below:
    

    Solutions

    This is a common problem, which may be caused by mongos not refreshing its metadata cache as shown below. For more information, please see db.dropDatabase().
    
    Select one of the following two solutions for troubleshooting:
    1. Restart mongos in the instance list in the console.
    2. Run the flushRouterConfig command as instructed.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support