Error
Error Code: 13297

MongoDB Error 13297: Database Case Conflict

📦 MongoDB
📋

Description

Error 13297, 'Database Differ Case', indicates a conflict where MongoDB detects two or more database names that are identical except for their letter casing. This typically occurs on operating systems with case-insensitive file systems, preventing MongoDB from distinguishing between the databases and starting correctly.
💬

Error Message

Database Differ Case
🔍

Known Causes

3 known causes
⚠️
Case-Insensitive File System
Operating systems like Windows or macOS (default HFS+) treat database directories with names differing only by case (e.g., 'mydb' and 'MyDb') as the same, causing a conflict for MongoDB.
⚠️
Manual Data Directory Creation
Manually creating data directories for MongoDB with names that are case-variants of each other on a case-insensitive file system will lead to this error.
⚠️
Cross-Platform Data Migration
Migrating MongoDB data from a case-sensitive file system (e.g., Linux) to a case-insensitive one (e.g., Windows) can expose pre-existing database name conflicts.
🛠️

Solutions

Coming Soon

Detailed step-by-step solutions for this error are being prepared. In the meantime, try these general troubleshooting tips:

General Troubleshooting Tips

  • Check the error message carefully for specific details
  • Review recent changes that might have caused the error
  • Search for the exact error code in the official documentation
  • Check log files for additional context
  • Try restarting the application or service
🔗

Related Errors

5 related errors