I have to create the database as name "personal_connections" using mongoVUE tool.
but i am getting application error message as below
"Database name must contain alphanumeric charachers only, please correct it and retry"
Do you have any idea about it ..could i not create database with "_" chars for my application ?
开发者_开发知识库thanks for your reply in advance.
Javaamtho
According to the error message, yes, you cannot have an _ in your database name.
This could be a restriction/bug of the tool, though. I cannot find documentation about this being prohibited by MongoDB itself. The mailing list says:
Database names:
- empty string is not valid
- cannot contain space, ".", "$", "/", "\" or "\0"
- should be all lowercase
- limited to 64 bytes (after conversion to UTF-8)
- admin, local and config are reserved
Collection names:
- empty string is not valid
- cannot contain "\0"
- avoid creating any collections with "system." prefix
- user created collections should not contain "$" in the name
Also, the sum of the database name + collection name + 1 is limited to 121 bytes (in practice stay below 100).
Underscore issue will be fixed in next release of mongovue(current version is 0.9.7.2). It is mongovue author comment from facebook mongovue page:
Underscores in database names has already been fixed. Will be available in the next release. Thanks!
精彩评论