MongoDB Community : Error when installing service as local or domain user
MongodbMongodb Problem Overview
When installing MongoDB Community as a local service you need to enter the future credentials of your account :
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.
What should I write here? Whenever I write something, I get an error.
Mongodb Solutions
Solution 1 - Mongodb
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.
Solution 2 - Mongodb
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.
Solution 3 - Mongodb
I had admin user without password.I had set password and try installation and give local admin user and password.it work for me.
Solution 4 - Mongodb
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.
Solution 5 - Mongodb
quit intall . restart install msi file,and select default option
Solution 6 - Mongodb
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.