user3214030
user3214030

Reputation: 129

how to create custom database in `MongoDB` and how to connect that database using meteorjs

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

Upvotes: 0

Views: 426

Answers (1)

EpokK
EpokK

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

Related Questions