SouthbankSoftware / dbkoda

State of the art MongoDB IDE
https://www.dbkoda.com
GNU Affero General Public License v3.0
870 stars 43 forks source link

Connecting to remote mongodb database #30

Open simonschaufi opened 6 years ago

simonschaufi commented 6 years ago

Hi, I'm working on windows and have my mongodb database in a virtual box container. DBKoda is asking me for a path to mongodb but the thing is that I have not installed mongodb in my host system but only in the virtual box.

How can I connect to my box?

Host: 127.0.0.1 Port: 2222 User: vagrant Pass: *****

And in settings:

Mongo binary path: /usr/bin/mongo

but it tries to find that path probably on the host system and not in the container so that's not working

I get this error:

Error: Creation of shell connection failed. Unable to detect your mongo binary.

Please make sure the Mongo shell is in your path, or define path to mongo shell in the Preferences Panel.(Refer to this doc for details)

I have no problem with Robo 3T. Setting up a SSH Tunnel and everything works fine.

michaeljharrison commented 6 years ago

Hi!

So unfortunately it is a requirement of dbKoda at the moment that it can access a Mongo Binary to connect to servers. So you'll need a version of mongo running either on the host system or in a docker container on the host system (See preferences panel). At the moment we don't support running a remote mongo binary. However this is something that is on our feature wish list. :)

Kind Regards, Mike from dbKoda.

simonschaufi commented 6 years ago

Hi, so the whole SSH section is only for docker? Waiting for the feature!

michaeljharrison commented 6 years ago

Hey,

So the SSH section allows dbKoda to connect to the host and gather some information on how the server is performing (CPU, Memory, Network). These metrics are used in the Performance Lab. As a workaround you can install Mongo Locally or via Docker. I'll update this ticket when we eventually add support for this feature :)

Kind Regards, Mike from dbKoda.

simonschaufi commented 6 years ago

Thank you for that helpful information.

I'm fine using Robo 3T for now ;)

sukai-cheng commented 3 years ago

pls tell me how to find the monogo shell path....

sukai-cheng commented 3 years ago

@simonschaufi

simonschaufi commented 3 years ago

whereis mongo is the command to find paths