psql: FATAL: password authentication failed for user windows 8

Sarah cartenz

I installed postgresql on windows and while the installation it asks to make a user for the account.This made a new windows user in my computer called postgres, I have created a password for it as well.

Now I want to run psql on windows command line, it asks for a password (without mentioning the user) and always gives me back the error: psql: FATAL: password authentication failed for user "Ash". Even though I have put my accounts password many times.

using pgadmin I changed the user "postgres" to "Ash" but I have yet to remake the password. I followed the steps here: I forgot the password I entered during postgres installation (I rather types host all 127.0.0.1/32 trust because I am on windows), but when running psql again so that I can change the password I get the error: psql FATAL:could not load pg_hba.conf. All together.

Why can it not load? All I did was add an extra authentication option.

Also, is the windows user separated from a postresql user or are they the same(depend on each other)?

Edit:

As you can see, it did not give me the option to choose if Aisha should be a superuser or not. or the other options for that matter.

I also used pgadmin||| to create a new user but the same error pops up: enter image description here enter image description here

The user does not exist so why does it do this?

Craig Ringer

createuser is a command-line utility. Use CREATE USER username WITH PASSWORD 'fred'; or similar at the SQL level in psql. Note the semicolon.

What you're doing in your screenshot is starting to write an SQL command beginning with createuser, but never sending it to the server to run because there's no semicolon terminator. So you never get the error that would tell you it doesn't make sense to do that.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

psql: FATAL: password authentication failed for user error while trying to access psql

From Java

psql: FATAL: Peer authentication failed for user "dev"

From Dev

psql: FATAL: PAM authentication failed for user

From Dev

PSQL - password authentication failed for user "postgres"

From Dev

FATAL: password authentication failed for user "postgres"

From Dev

psql: FATAL: Ident authentication failed for user "xxx" with method trust

From Dev

PostgreSQL SSPI authentication - FATAL: 2801: password authentication failed for user "xxx"

From Java

FATAL: password authentication failed for user "postgres" (postgresql 11 with pgAdmin 4)

From Dev

PG::ConnectionBad: FATAL: password authentication failed for user "alphauser"

From Dev

Redshift connection issue: FATAL: password authentication failed for user

From Dev

FATAL: password authentication failed for user "postgres" Ubuntu v20.10

From Dev

How to solve " django.db.utils.OperationalError: FATAL: password authentication failed for user "Oeloun-pc" " in Pycharm Windows?

From Dev

remote: Invalid username or password, fatal: Authentication failed for

From Dev

Rails 5 in prod: PG::ConnectionBad: FATAL: password authentication failed for user "postgres" with Docker

From Dev

FATAL: Peer authentication failed for user "rails"

From Dev

FATAL: Peer authentication failed for user "shop"

From Java

Postgresql: password authentication failed for user "postgres"

From Dev

error: password authentication failed for user "myuser"

From Dev

jitterbit-password authentication failed for user "postgres"

From Dev

Password authentication failed for a user not in my role list

From Java

git remote: Invalid username or password. fatal: Authentication failed - ubuntu

From Dev

remote: Invalid username or password. fatal: Authentication failed for

From Dev

Fatal! Authentication for user postgres failed, multiples OS, nothing work

From Dev

PG::ConnectionBad: FATAL: Ident authentication failed for user "rails_dev"

From Dev

Database connectionstring windows authentication but passing user and password

From Dev

VS Team Services & Git for Windows error "fatal: Authentication failed ..."

From Dev

28P01--Password authentication failed for user in DataGrip

From Dev

Java Springboot application returning password authentication failed for user "postgres"

From Dev

fatal: Authentication failed Git Bash

Related Related

  1. 1

    psql: FATAL: password authentication failed for user error while trying to access psql

  2. 2

    psql: FATAL: Peer authentication failed for user "dev"

  3. 3

    psql: FATAL: PAM authentication failed for user

  4. 4

    PSQL - password authentication failed for user "postgres"

  5. 5

    FATAL: password authentication failed for user "postgres"

  6. 6

    psql: FATAL: Ident authentication failed for user "xxx" with method trust

  7. 7

    PostgreSQL SSPI authentication - FATAL: 2801: password authentication failed for user "xxx"

  8. 8

    FATAL: password authentication failed for user "postgres" (postgresql 11 with pgAdmin 4)

  9. 9

    PG::ConnectionBad: FATAL: password authentication failed for user "alphauser"

  10. 10

    Redshift connection issue: FATAL: password authentication failed for user

  11. 11

    FATAL: password authentication failed for user "postgres" Ubuntu v20.10

  12. 12

    How to solve " django.db.utils.OperationalError: FATAL: password authentication failed for user "Oeloun-pc" " in Pycharm Windows?

  13. 13

    remote: Invalid username or password, fatal: Authentication failed for

  14. 14

    Rails 5 in prod: PG::ConnectionBad: FATAL: password authentication failed for user "postgres" with Docker

  15. 15

    FATAL: Peer authentication failed for user "rails"

  16. 16

    FATAL: Peer authentication failed for user "shop"

  17. 17

    Postgresql: password authentication failed for user "postgres"

  18. 18

    error: password authentication failed for user "myuser"

  19. 19

    jitterbit-password authentication failed for user "postgres"

  20. 20

    Password authentication failed for a user not in my role list

  21. 21

    git remote: Invalid username or password. fatal: Authentication failed - ubuntu

  22. 22

    remote: Invalid username or password. fatal: Authentication failed for

  23. 23

    Fatal! Authentication for user postgres failed, multiples OS, nothing work

  24. 24

    PG::ConnectionBad: FATAL: Ident authentication failed for user "rails_dev"

  25. 25

    Database connectionstring windows authentication but passing user and password

  26. 26

    VS Team Services & Git for Windows error "fatal: Authentication failed ..."

  27. 27

    28P01--Password authentication failed for user in DataGrip

  28. 28

    Java Springboot application returning password authentication failed for user "postgres"

  29. 29

    fatal: Authentication failed Git Bash

HotTag

Archive