How do I access Meteor’s MongoDB from another client, while Meteor is running ?
How do I access Meteor’s MongoDB from another client, while Meteor is running ?
Here the solution is:
Meteor Run command like this,
PORT=3000 MONGO_URL=mongodb://localhost:27017/myapp node bundle/main.js
Here an another solution:
Try this code connect mongo code with another client,
>>> import pymongo >>> con = pymongo.Connection(host='127.0.0.1', port=3002) >>> con.database_names() [u'meteor', u'local']