Once the connection is successful, MongoDB will display all the available databases within the MongoDB deployment. To start the process, open the Robo 3T application and connect to a configured MongoDB Deployment by clicking Connect button at the lower right hand corner of the MongoDB Connections window.Ĭreating the MongoDB Database in Robo 3T GUI How to install and setup a MongoDB Server on macOS How to Install and Setup MongoDB on Windows NOTE: If MongoDB is not properly installed you can refer to the following articles on how to install MongoDB in each of the different OSs. If you have it installed you can run it in the background with the mongod commmand.Įnsure that Robo3T is properly installed before hand. PrerequisitesĮnsure that MongoDB is properly installed and running in the background. Robo 3T, formerly known as “Robomongo” is one of the leading MongoDB GUI ( Graphical User Interface ) tools out there that provides an easy way to interact with MongDB databases instead of the command line or Mongo Shell. So, wrapping up I have a working example I can now back-port to the project for which I need to replace vagrant.This article will discuss and show the simple steps of configuring a MongoDB database within Robo 3T GUI. Maybe I’ll find a way to fix Robo, if so, will post here. Will learn how to use MongoExpress for this Docker based project instead. Yes, I know, Robo 3T is an older, buggy piece of software, but it works for other servers, even over SSH, so I’m not about to swap it out. The error now is different though Cannot connect to the MongoDB at localhost:27017.įailed to execute "listdatabases" command. I can access MongoExpress from “host” so that exposed port works, but I still cannot access the mongo database using Robo 3T. Would love to learn how to fix this, but this is out of scope and not required for a development environment, so for now I disabled authentication by removing the environment-variable definitions for it and now I have a running mongoDB (accessible from php) and mongo express runs also and can connect to mongo, so internally everything is o.k. The “SCRAM-SHA-1” authentication mechanism requires libmongoc built with -enable-ssl The example given at docker hub for mongo doesn’t work, at least, not out of the box, not without modifications to the php container. And with that, I got the impulse to recheck other stuff I – in fact – took for granted and I have been able to get a little further I’m running Docker on a Mac, macOS 10.15, Docker Desktop version 3.4.0, cli version 20.10.7.Įven an empty response is a response, Hopefully anyone can point me to my mistake. The mongo data store is getting filled, so I know the software is running, or at least ran once and when I enter the container with docker exec -it mongodb /bin/bash and ps -A | grep mongo I see the process running.Īs you might suspect, I’m a total noob with Docker but I’m trying to learn. I noticed the exposed verses internal port difference (the working ones have different host and client ports and the not working ones have identical ports) so I did already try with alternate ports (27018 for mongo and 8181 for mongoExpress) which did not help. The php74 (web) container is working perfectly, why shouldn’t the mongo and me containers? Also, the mariadb container is working perfectly both from the php74 container and with SequelPro on its exposed port. $ curl -I returns: “empty response from server”ĭocker container ls reports the containers running and ports exposed. Network error while attempting to run command 'saslStart' on host '127.0.0.1:27017' Then open Robo 3T and connect to localhost:27017 or 127.0.0.1:27017, error response: Cannot connect to the MongoDB at 127.0.0.1:27017. I have the DAMP stack working, but the mongo and mongo-express web-client have me boggled.Īccess mongo on exposed port 27017 using Robo 3TĪccess mongo-express as alternative to Robo on exposed port 8081 I’m trying to migrate from vagrant to docker, and for a legacy project I need a set-up with Apache/PHP/MySQL and MongoDB I must be doing something wrong, I hope I can get some help here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |