Connection screen of adminMongo

Asked

Viewed 62 times

0

I installed the adminMongo.

I followed the installation instructions:

  1. Navigate to Folder & install adminMongo: git clone https://github.com/mrvautin/adminMongo.git && cd adminMongo
  2. Install dependencies: npm install
  3. Start application: npm start or Node app
  4. Visit http://127.0.0.1:1234 in your browser

Until I reached the login page of step (4) and from there I could not pass.

I need to fill in the field "Connection string", but I don’t know what I should set there.

EDIT: I refer to this string here:

mongodb://<user>:<password>@127.0.0.1:<port>/<db>

Can anyone explain to me? Thank you!

  • 1

    You’re talking about this string mongodb://<user>:<password>@127.0.0.1:<port>/<db>? Be clearer on your problem.

  • Exactly! That very string! I will improve the question.

1 answer

1


To string connection data is very descriptive about what you need to contain. It is your database authentication data (Mongodb) which you will link with the Administration.

Supposing that you have the Mongodb configured on your machine, the data is:

  • <user> = user
  • <password> = password
  • 127.0.0.1 = server address for connection (in your case is the location: 127.0.0.1)
  • <port> = door (Optional, the default port is the 27017)
  • <db> = bank (this is optional, the default bank is admin)

In the doc official you have the detailed description of string connecting.

  • These parameters I understand! The problem is that everything I put there to make the connection results in error. I typed the following: "mongodb://root:@127.0.0.1". Answer: "Config error: Mongoerror: Authentication failed."

  • @Jhenry edits your question and adds this information, then gets better understood. And this error is very descriptive, you’re missing some of these parameters.

  • I managed to solve! Sorry for the amateurism of the question. But, although simple, there are so many possible options, with or without quotation marks, with or without two dots, with or without optional parameters. You have to have a crystal ball to find the right way. But thank you!!!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.