Share via

PowerShell password authentication failed for user

Anonymous
2023-05-25T18:46:39+00:00

Hi,
I am learning database management and the course has exercises using PowerShell. We practice creating user by connecting to Postgres, but also to do so locally with command:

PS C:\Users\*me*> createuser --interactive

Enter name of role to add: test_interactive

Shall the new role be a superuser? (y/n) n

Shall the new role be allowed to create database? (y/n) n

Shall the new role be allowed to create more new roles? (y/n) y

Password:

Password:

createuser: error: connection to server at "localhost" (: :1), port 5432 failed: FATAL: password authentication failed for user "*me*"

I have already tried with updating my password, but I still get the same error.

Windows for home | Windows 10 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2023-05-25T21:25:05+00:00

    Glad to know

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2023-05-25T21:19:33+00:00

    Thank you, ViniciusMU. I have posted my question on TechNet.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2023-05-25T19:31:25+00:00

    Hi, UserQLL.

    The Microsoft Community is a forum for home users.

    Since your question is related to Database, I suggest you go to the link below which will direct you to the sister TechNet forum.

    https://social.technet.microsoft.com/Forums/en-...

    TechNet has IT professionals and system administrators who can best help with this type of question.

    Was this answer helpful?

    0 comments No comments