6

I install the mongodb and the Robomongo to control it. but when I use the shell to create table and insert something into it,I can see it in the shell but in the Robomongo I cannt see it,and the database list show the used space is 0.000GB,here is the pictureenter image description here

I have checked the permission of it own files include the config file and the storage file, it's all 777, the version of the mongodb is 3.2.6.

DAXaholic
  • 33,312
  • 6
  • 76
  • 74
unknow error
  • 81
  • 2
  • 5

1 Answers1

0

Are you able to connect to your database server using roboMongo?

If yes, then in the roboMongo explorer window,

  1. Expand the database you wish to see.
  2. expand collections folder. You must be able to see your collection.
  3. Right click on the collection and choose "View Documents"

enter image description here

And if you are not able to connect to the database server, check the connection Address, portNumber, Authentication details etc.

Kavya Mugali
  • 1,008
  • 2
  • 10
  • 17
  • 1
    in the shell i can see 3 tables and some test data in it .The Robomongo is connect to database server, i can see the databases but i cannt see the tables or the test data. – unknow error Jun 06 '16 at 06:28
  • @unknowerror 1. What do you see when you expand the collections folder? 2. Are you sure you are comparing the same databases in shell and roboMongo. May be your shell is picking up the previously used database. Can you switch to the _database in question_ on you mongo shell and then run the find command. use `use database_name` to switch database – Kavya Mugali Jun 06 '16 at 07:15
  • 1
    1.there is nothing show in the folder. 2 . i only have two databases,on is local,another is my test database named node. I can switch to the test database. here is my another test: i create a collection in the Robomongo,it remind me i have create it successfully, but when i refresh it, the new collection is not exist,and i find it in my mongo shell. – unknow error Jun 06 '16 at 07:37
  • I see only one database in Robomongo. However, I have 3 databases and I can see their content through mongo shell and nodejs-mongoose connector. Am I missing anything? – Tarun Nov 20 '16 at 23:00