Parse.com connecting MongoLab URI to Parse Dashboard - mongodb

I have trouble connecting my mongodb database to Parse Dashboard using the required URI :
mongodb://user:password#dsXXXXX.mongolab.com:XXXXX/my_db?ssl=true
Here is what I get :
I'm completely new to mongdb and mongolab and cannot figure out what's going on.

I using Heroku and MongoLab for Parse,
And the URI I am using, I've got from Heroku app setting page as follows:

Related

Error while connecting MongoDB ATLAS TO MONGO DB COMPASS

I am a beginer in mongoDB and learning Mongodb atlas.
In MongoDB Atlas, Under database access created username and password ( password is system generated and has no special character)
Under Network access added a public ip address (allow access from anywhere)
Under database deployment loaded sample database.
Now I wanted to see my cluster data, so wanted to connect it to vs code or MongoDB Compass. I clicked connect, selected connect using mongo db compass, copied the string.
now i opened Mongodb compass, and under New connection i.e connect to a MongoDB deployment, i entered my URL
mongodb+srv://gourav_singh:7gamf8UkL8B6MET#cluster0.9dmds.mongodb.net/test
clicked Connect
But i got error as : Unable to connect: connect ECONNREFUSED 3.6.85.199:27017
How I can fix it, Looking for kind help. Thanks in advance

Connecting to mongoDB on deployed meteor app

I recently deployed an app on galaxy using meteor 2.0 and mongo. I deployed using the command meteor deploy <domain>.au.meteorapp.com --free --mongo and it gave me the mongo URL below.
mongodb://<username>:<password>#SG-apgalaxycluster-38734.servers.mongodirector.com:27017,SG-apgalaxycluster-38735.servers.mongodirector.com:27017/<domain>-au-meteorapp-com?replicaSet=RS-apgalaxycluster-0&ssl=true
I cant seem to access this DB on mongo compass as when I paste the connection string in I simply get an error saying self signed certificate
Does anyone know how I can access it?

Mongodbd login with Mongoose to new database

I use mongoDB in Atlas cloud but now I want to movie to a local database. I installed MongoDB and created a admin user. Now I connect with mongoose to :
mongodb://login:pass#db.myserver.com:27017/admin
Works well. Now I create a new development database "develop".
I try to connect
mongodb://login:pass#db.myserver.com:27017/develop
This failed to login. OK, I understand that the admin database is the "/admin" one and that user is authenticated to this database but I thought that an admin can access all databases in a mongodb server?
In Atlas I just created the develop database and connected to it without any problem.
How I can well connect with mongoose to the new develop database? Do I need to create a second admin for this database?
Ok, I found out that I have to name the auth database in my connection string.
mongodb://login:pass#db.myserver.com:27017/develop?authSource=admin

Unable to connect to mLab database from self-hosted Parse

TL;DR: I can get my parse dashboard talking to my locally-hosted Parse server and mongo db instance but cannot get the parse server to talk to the mLab-hosted database.
I am going through the Parse migration guide and have got mongo DB, parse-server-example and parse-dashboard running locally. When I use the following details in the parse index.js file I can successfully connect the dashboard and see the test items in the database:
databaseURI: 'mongodb://localhost:27017/dev',
cloud: __dirname + '/cloud/main.js',
appId: '1',
masterKey: '1',
serverURL: 'http://localhost:1337/parse'
I have installed mongo db locally and when connecting to my mLab instance with the shell I can see the database content. When I use that same mLab connection string in the databaseURI parameter within index.js the dashboard can no longer see the database content and the /test page on the locally-hosted parse server.
The Parse Migration Guide states...
Go to the Security & Keys section of App Settings in your Dashboard
and take note of the File Key and Master Key values. Pass that into
the ParseServer constructor in index.js. You no longer need to use a
client key with Parse Server.
I can find those keys but I cannot see where to put the File Key into the index.js.
I also do not understand why those keys are required if the locally-hosted Parse server and mLab database know nothing about them.
steps :
create your user/pwd in the mLab/mongo instance
get the db URL from mLab dashboard
connect using a command lib client to verify what parse-server will
use. this verifies the user/pwd you will use below...
go back to 'parse-server.js' to config it for mongo/remote
var databaseUri = $what-was-on-cli-client-above
var api = new ParseServer({
databaseURI: databaseUri || 'mongodb://<db.....
....

Migrating data from parse.com to MongoDb

I was trying to migrate my app from parse.com to my own server.
After configuring parse server on AWS and mongodb on Mlab , I tried to migrate data using parse.com dashboard , however after clicking the migrate button , it show me this error "The destination database was not empty." even though my mongo database is empty ?