-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: No suitable servers found - connection refused calling ismaster on '127.0.0.1:27017' #8
Comments
Hello, if you have a mongo container running you should use his name as host. The other are from the user(s) you created with init script or env variable. If you have only an "admin" user you should omit "Database" so you have access to your others databases. |
HI, i tried to login via admin and gave connection as Host=127.0.0.1 and port=27017 , got error note : i checked in host machine that mongo db active and running ..please suggest me what i can do for this.. |
Hello. If your MongoDB host is accessible from Internet: use its IP address as host. Else: use 172.17.0.1 as host. Let me know if it works... |
Hi, yes it worked for login, steps i followed like but if i try to add user from ui for that DB it is giving me same error " message": "No suitable servers found (serverSelectionTryOnce set): [connection refused calling ismaster on '127.0.0.1:27017']"" please find attachment and one thing with out giving DB name i am not able to login..so how to login as a admin ? any suggestion for this ? |
So when you try to add an user from UI, there's an error? Can you please attach a screenshot? |
@amrithadevadiga22 Hi. Thanks for the screenshots. To bypass the error "The SCRAM_SHA_256 authentication mechanism requires libmongoc built with ENABLE_SSL", follow these steps:
Then, about querying, you don't need to write full command |
@SamuelTS Hi, Thanks for the reply.. and one more thing like i tried some basic mongo db query commands non of the query giving output..as you gave example above like "{ "_id": 1 }", i didn't get how it actually working..and if i want to query the database with some condition how can i write a query !! |
@amrithadevadiga22 Hello. I suggest you to drop then re-create user named "employee" for db "employee" with role readWrite. You can query database using |
I have followed these steps
Docker (PHP built-in server)
Clone current repository.
Run once docker build -t mongodb-php-gui . at project's root directory.
Run docker run -it -p 5000:5000 mongodb-php-gui at project's root directory.
Open your browser at this address: http://127.0.0.1:5000/ to access GUI.
i am able access the UI but how to login ? what will be the credentials
The text was updated successfully, but these errors were encountered: