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 ?

Asked on November 16, 2018 in Meteor.
Add Comment


  • 2 Answer(s)

    Here the solution is:

    Meteor Run command like this,

    PORT=3000 MONGO_URL=mongodb://localhost:27017/myapp node bundle/main.js
    
    

     

    Answered on November 16, 2018.
    Add Comment

    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']
    
    Answered on November 16, 2018.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.