Reputation: 129
I need how to create custom database in MongoDB and how to connect that database using meteorjs
.
Upvotes: 0
Views: 426
Reputation: 38092
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
Upvotes: 4