I need how to create custom database in MongoDB and how to connect that database using meteorjs .
-
what do you mean by "custom database"?imslavko– imslavko2014-01-22 09:07:38 +00:00Commented Jan 22, 2014 at 9:07
-
create in MongoDb with our database name @imslavkouser3214030– user32140302014-01-22 10:20:30 +00:00Commented Jan 22, 2014 at 10:20
Add a comment
|
1 Answer
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
3 Comments
user3214030
Thanq... for saying. and How to insert custom login details into (MONGO_URL=mongodb://localhost:27017/mydb test ) test db.
user3214030
How to insert custom login details into (MONGO_URL=mongodb://localhost:27017/mydb test ) test db.@EpokK
Tobias
MONGO_URL='mongodb://<user>:<pass>@localhost:27017/mydb' meteor