MongoDB connect to databases using Compass the phpmyadmin for mongodb

To connect from server outside you need to download the client from…

https://www.mongodb.com/download-center?jmp=docs&_ga=2.25013112.374405514.1518774961-2094581875.1518002289#compass

After this update this file…

/etc/mongod.conf
SET

# network interfaces
net:
port: 27017
bindIp: 127.0.0.1

TO

# network interfaces
net:
port: 27017
bindIp: 0.0.0.0

After this restart the service using

service mongod stop
service mongod start
On the compass interface on host just put your server ip adress like … 192.168.333.333 credentials none

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *