• Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Default
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Quartz
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Slate
  • Solar
  • Superhero
  • Vapor
Collapse

Community

Rushi MR

Rushi M

@Rushi M
About
Posts
3
Topics
1
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

    RE: Error: Authentication failed when installing for Windows
  • Rushi MR Rushi M

    Net stop:

    net stop MongoDB
    The MongoDB Server (MongoDB) service is stopping.
    The MongoDB Server (MongoDB) service was stopped successfully.
    

    Net start:

    C:\WINDOWS\system32>net start MongoDB
    The MongoDB Server (MongoDB) service is starting..
    The MongoDB Server (MongoDB) service was started successfully.
    

  • RE: Error: Authentication failed when installing for Windows
  • Rushi MR Rushi M

    @PitaJ Thanks or the reply! I really need help.

    Here is where it is located. C:\MongoDB.

    Here is what it has:

    systemLog:
        destination: file
        path: C:\MongoDB\logs\mongod.log
    storage:
        dbPath: C:\MongoDB\data\db
    security:
      authorization: enabled
    

  • Error: Authentication failed when installing for Windows
  • Rushi MR Rushi M

    Hello,

    I'm following the Windows tutorial with this link

    Windows - NodeBB Documentation

    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. :
    [email protected]/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.

  • Login

  • Don't have an account? Register

  • Login or register to search.

  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
  • Login

  • Don't have an account? Register

  • Login or register to search.