How is MongoDb installed Meteor?

I am new to Meteor.js and MongoDB and after installing Meteor in the official way is described. I wonder how to connect to my MongoDB.

MongoDB had Meteor installed during installation, and everything worked fine, but now I would like to examine it with another tool (like RazorSQL ) to see what's there.

But the standard connection parameters (localhost: 27017) do not work, what can I do? Log in? Password?

Connection parameters to MongoDB in RazorSQL

+10
mongodb meteor razorsql
Jan 17 '13 at 3:48 on
source share
2 answers

Update: February 2014 - Meteor 0.7.1 - The meteor port was moved to 3001 instead of 3002. Therefore, instead of adding two to the meteor stream, you add instead.

The MongoDB database is installed in a meteor package containing your files in a hidden folder named .meteor . To access it from a remote tool, just add 2 to the fact that your web server port is at the time of the meteor. It will be stored in the meteor database

for example http://localhost:3000 will have its own mongodb server running in mongodb://localhost:3002/meteor , in this instance there is no username / password if you started it using meteor or meteor run

+11
Jan 17 '13 at 6:46
source share

To get the URL and port of Meteor Mongo, first start the Meteor application with meteor run , then run meteor mongo in another tab of the terminal. You should see a conclusion like this

 [meteor-app] meteor mongo MongoDB shell version: 2.6.7 connecting to: 127.0.0.1:3001/meteor 

this means that your Meteor Mongo is running on 127.0.0.1:3001 .

If you use the Meteor app with meteor run , you do not need a username / password or authentication setting, just make sure you set the default database name as meteor

+5
Aug 09 '15 at 9:26
source share



All Articles