![]() In my case I changed mechanisms to SCRAM-SHA-1 than it worked like a charm. In addition if you are still having some issues about creating new user, Then you can logout and try to connect with credentials to the shell as an admin. Once attached, you can work with the MongoDB server. I also tried to run mongo CLI from inside the container but still getting the same error: mongoĬonnecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb Note: Make sure your MongoDB server (mongod.exe) is running if you are connecting to a local MongoDB server. In docker-compose I add it like: my-mongo: If it does not work, you should send an email to with the log file HackoladeRE.I'm using mongo image in my local docker environment, but I'm getting Authentication failed error. Then try again to connect to the database, using the newly created connection settings. Verify your Authentication Database and authentication mechanism. When you save, this should parse the string and fill-in all the entries automatically. Ensure that the MongoDB user you are authenticating as exists. Here are the steps:ġ) Open Compass, select the connection, and click on the Edit button:ģ) in the edit window, press ctrl+A to select the entire string, then ctrl+C to copy the string to the clipboard:Ĥ) In Hackolade MongoDB model connections settings, add a new one, and press the button "From SRV or URI":ĥ) then press ctrl+V or right click and choose paste: Just to make sure that the connection string is identical to what you have in Compass, is to copy/paste from Compass into Hackolade. Compass and Hackolade use the same software libraries to connect to MongoDB instances, whether on-premises or Atlas. Some typical issues might be with entries on the Auth tab: are the username and password spelled correctly, with the appropriate upper and lower cases, and is the Auth source correct (in most cases it should be left empty or use the default "admin".)īut there could be many other details. I am trying to implement a MongoDB within Laravel 5.4 using Jenssegers MongoDB plugin for Laravel but when I am trying to retrieve data from the database. Particularly, if you have no such issue with MongoDB Compass. It can be frustrating to initiate a reverse-engineering operation, and get a message like "MongoError: Authentication failed". Ensure that the MongoDB user you are authenticating as exists.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |