S
S
Sergey Beloventsev2017-07-24 14:45:41
MongoDB
Sergey Beloventsev, 2017-07-24 14:45:41

How to connect to MongoDB via compass?

how to connect via compass to the database i have a host, port, site address user and password.
And if I figured out the password for the user and SSH, then I don’t understand what Hostname is. I was given the settings with chief here
Server - localhost.
Address - lectoroom.ru
Port *****
User****
Password ******
question how can I connect to the database via compass I don't understand what to enter in
Hostname

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
emp1re, 2017-07-24
@Sergalas

to connect to the database, a url of this format is given -
mongodb://user:[email protected]:port/dbname
Parse this line into the necessary intputs and it will work, if there are additional settings with ssl and ssh, then such options are also available in compass, respectively and robomongo and mongoChief.
My advice to you is connect via console. And then you won't have any further questions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question