2 20.16. Authentication Problems #
4 Authentication failures and related problems generally manifest
5 themselves through error messages like the following:
7 FATAL: no pg_hba.conf entry for host "123.123.123.123", user "andym", database
10 This is what you are most likely to get if you succeed in contacting
11 the server, but it does not want to talk to you. As the message
12 suggests, the server refused the connection request because it found no
13 matching entry in its pg_hba.conf configuration file.
15 FATAL: password authentication failed for user "andym"
17 Messages like this indicate that you contacted the server, and it is
18 willing to talk to you, but not until you pass the authorization method
19 specified in the pg_hba.conf file. Check the password you are
20 providing, or check your Kerberos or ident software if the complaint
21 mentions one of those authentication types.
23 FATAL: user "andym" does not exist
25 The indicated database user name was not found.
27 FATAL: database "testdb" does not exist
29 The database you are trying to connect to does not exist. Note that if
30 you do not specify a database name, it defaults to the database user
35 The server log might contain more information about an authentication
36 failure than is reported to the client. If you are confused about the
37 reason for a failure, check the server log.