MongoDB Community : Error when installing service as local or domain user

Viewed 26615

When installing MongoDB Community as a local service you need to enter the future credentials of your account :

enter image description here

If I enter for example: user: MongoDB password : root

I got this error message:

The domain, user name and/or password are incorrect. Remember to use "." for the domain if the account is on the local machine.

error

What should I write here? Whenever I write something, I get an error.

6 Answers

Here is the solution: Username should be 'username' of your system/device. And password should be password of your system/device. It's weird, but that shall work.

Here's the solution for Windows 10(x64):

  • If you don't have a domain (for home or personal computers), leave the domain field with "."
  • If your computer is owned by your company, contact your system administrator and then in the domain field type : Company_Domain

  • In the username field,

    • for personal computers : type your username. If you're signed in with a Microsoft Account, type the email address or the name of your Microsoft Account.

    • for company provided machines : type your username as Company_Domain/Your_Username

  • In the password field type the password not the PIN number (if you've set it up).

That should help.

I had admin user without password.I had set password and try installation and give local admin user and password.it work for me.

quit intall . restart install msi file,and select default option

Here is the best solution: Provide your system/device Username and password. And password should be password of your system/device. It's weird, but it shall work.

I used the a similar solution as Khan. I went to the download directory and when I executed the msi file this time, I was asked whether the Compass option should be installed. After unchecking that, the rest of the install worked, using default options. This is a Windows 10 laptop.

Related