2

I am trying to create a database in mongo db using command use db shorten

when i run the mongod instance it outputs this Mongod instance

but when try to run mongo in the separate terminal it gives error creating a database

enter image description here

the data/db permissions are set to 755 and i couldn't find anything related to it

1 Answer 1

2

If your db is called 'shorten' you should just type use shorten. It's the extra 'db' in there that's messing you up.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.