tencent cloud

All product documents
TencentDB for MongoDB
DocumentationTencentDB for MongoDBPractical TutorialWhat to Do for Errors of Repeated Instance Creation and Deletion of Databases with the Same Names?
What to Do for Errors of Repeated Instance Creation and Deletion of Databases with the Same Names?
Last updated: 2024-05-07 21:09:14
What to Do for Errors of Repeated Instance Creation and Deletion of Databases with the Same Names?
Last updated: 2024-05-07 21:09:14

Problem Description

When repeatedly dropping a database and then creating a database with the same name in MongoDB 3.6, errors such as 'database does not exist' may occur during read-write operations or when dropping the database, as shown below:


Solution

This is a common issue that may arise if mongos has not refreshed its metadata cache. For more information, please refer to the official description as illustrated below:

There are two solutions; please choose one of them:
1. Restart mongos, which can be done in the Console Instance List.
2. Alternatively, run the flushRouterConfig command, which comes with a detailed explanation.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

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
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon