[DOCS-4549] Size limits on database names should be in terms of bytes, not characters Created: 17/Dec/14  Updated: 30/Oct/23  Resolved: 01/Nov/22

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Minor - P4
Reporter: Spencer Jackson Assignee: Andrew Aldridge
Resolution: Won't Fix Votes: 0
Labels: bite-sized
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 1 year, 14 weeks, 1 day ago
Epic Link: DOCSP-1769
Story Points: 0.25

 Description   

http://docs.mongodb.org/manual/reference/limits/ states:

Length of Database Names
Database names cannot be empty and must have fewer than 64 characters.

However, this limit appears to be based on the number of bytes in the name, as the shell will reject shorter names which use multibyte unicode characters. For example:

> use 処処処処処処処処処処処処処処処処処処処処処
switched to db 処処処処処処処処処処処処処処処処処処処処処
> use 処処処処処処処処処処処処処処処処処処処処処処
2014-12-17T14:06:19.955-0500 I QUERY Error: [処処処処処処処処処処処処処処処処処処処処処処] is not a valid database name
at Mongo.getDB (src/mongo/shell/mongo.js:41:12)
at shellHelper.use (src/mongo/shell/utils.js:537:24)
at shellHelper (src/mongo/shell/utils.js:524:36)
at (shellhelp2):1:1 at src/mongo/shell/mongo.js:41
>



 Comments   
Comment by Education Bot [ 01/Nov/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Generated at Thu Feb 08 07:48:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.