0

I need how to create custom database in MongoDB and how to connect that database using meteorjs .

2
  • what do you mean by "custom database"? Commented Jan 22, 2014 at 9:07
  • create in MongoDb with our database name @imslavko Commented Jan 22, 2014 at 10:20

1 Answer 1

4

You can invoke Meteor with the MONGO_URL environment variable set to the desired instance:

MONGO_URL=mongodb://localhost:27017 meteor

If your MongoDB handles multiple databases, you can indicate which one to use by appending it to the URL:

MONGO_URL=mongodb://localhost:27017/mydb meteor

MONGO_URL='mongodb://<user>:<pass>@localhost:27017/mydb' meteor
Sign up to request clarification or add additional context in comments.

3 Comments

Thanq... for saying. and How to insert custom login details into (MONGO_URL=mongodb://localhost:27017/mydb test ) test db.
How to insert custom login details into (MONGO_URL=mongodb://localhost:27017/mydb test ) test db.@EpokK
MONGO_URL='mongodb://<user>:<pass>@localhost:27017/mydb' meteor

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.