Hello,
I'm following the Windows tutorial with this link
https://docs.nodebb.org/installing/os/windows/#system-requirements
Everything was working smoothly until I got to this step
mongo -u admin -p your_password --authenticationDatabase=admin
MongoDB shell version v4.4.1
connecting to: mongodb://127.0.0.1:27017/?authSource=admin&compressors=disabled&gssapiServiceName=mongodb
Error: Authentication failed. :
connect@src/mongo/shell/mongo.js:374:17
@(connect):2:6
This is the error I got even though I put in the right password.
Command I ran:
C:\Program Files\MongoDB\Server\4.4\bin>mongo -u admin -p ojorocks --authenticationDatabase=admin
When I press show users in admin this is the output
> show users
{
"_id" : "admin.admin",
"userId" : UUID("e3c3df1d-f63d-48e3-ae65-b9cf03c86333"),
"user" : "admin",
"db" : "admin",
"roles" : [
{
"role" : "root",
"db" : "admin"
}
],
"mechanisms" : [
"SCRAM-SHA-1",
"SCRAM-SHA-256"
]
}
{
"_id" : "admin.admin2",
"userId" : UUID("0b87390b-2c08-4e21-9183-8a2406a9304e"),
"user" : "admin2",
"db" : "admin",
"roles" : [
{
"role" : "root",
"db" : "admin"
}
],
"mechanisms" : [
"SCRAM-SHA-1",
"SCRAM-SHA-256"
]
}
I am truly confused did I miss something? I even created an extra admin acct and it didnt work for that either.