Dim_Ka
Dim_Ka

Reputation: 786

mongo shell show collections returns empty list

I use mongo shell and server version 3.2.10 show dbs command works as expected. When I switch to any of my dbs, the show collections command does nothing. I tried with db.getCollectionNames() and I receive an empty array []. Using a tool like Robomongo shows my collections when I execute these commands. Am I doing somthing wrong?

Upvotes: 5

Views: 5822

Answers (1)

Dim_Ka
Dim_Ka

Reputation: 786

I found my problem. I forgot that the database names are case senzitive. Using my database with capitalized first letter fixed the problem. Thank you anyway.

Upvotes: 11

Related Questions