Ceren
Ceren

Reputation: 51

How to create a database with robomongo?

I want to create a new database by using robomongo. Click "create database" then I write database name. when I click to create nothing happens.

What am I doing wrong?

Upvotes: 5

Views: 22447

Answers (5)

Always Learning
Always Learning

Reputation: 2713

If using Robo 3T (new name for Robomongo) and you create a DB in Robo 3T but don't see it listed in the shell via show dbs.

You need to also create a collection in the new DB in Robo 3T and after that, it will show with show dbs.

Upvotes: 0

Hiep Tran
Hiep Tran

Reputation: 4093

First is reason: robomongo 0.8.5 can't read store engine 'wiredTiger': cmd show: "Detected data files in C:\data\db\ created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'. And mogodb storage engine wirte in 'wiredTiger'

Second: Solution:

1) delete every thing in database:

goto "C:\data\db" then delete all !!!!

2) open cmd, point the path to some where you can write command and type this:

mongod --storageEngine mmapv1

Upvotes: 1

Ivan Kvolik
Ivan Kvolik

Reputation: 431

i've encountered this problem today with the same version of RoboMongo. The problem was that RoboMongo currently doesn't support MongoDB storages version 3.x. More about this topic is available on the Robomongo blog

New version of robomongo will be available on 17. January and mongo versions 3.x will be supported.

Upvotes: 5

TomaszGuzialek
TomaszGuzialek

Reputation: 871

I just encountered the same issue in Robomongo 0.8.5 on Windows. Tried to create the collection from the shell instead and it revealed that my account was not authorized to do that. Robomongo failed silently in such a case.

Upvotes: 1

Pamador
Pamador

Reputation: 158

i suppose you have mongo installed and checked.

  • open up terminal/command prompt and run mongod. if there is a problem you may need to repair it

    $mongod --repair
    
  • in terminal you should have your mongo server waiting for connection
  • now run robomongo, and click on 'Connect' icon (File > Connect)
  • in connection settings window set the name, and other settings as you want.
  • click 'Save' and then connect using the connection you set up.
  • right click on your connection and select 'Create Database'.
  • type the name and you have your database.
  • to add table (i.e. collection), expand your database and right click on 'Collections' > 'Create Collection...'. I hope this helps.

Upvotes: 1

Related Questions