D
D
Dmitry2020-11-11 17:45:37
PostgreSQL
Dmitry, 2020-11-11 17:45:37

I can't load the site on openserver, how can I fix the error?

For some mysterious reason, this error appeared vhg3t3, it didn’t exist before, the site code didn’t change, the settings too, what’s the problem, help me solve it?

Caused by: PDOException
SQLSTATE[08006] [7] FATAL: no pg_hba.conf entry for host "::1", user "parrot_yii", database "parrot_yii", SSL off


In the pg_hba.conf file, I tried to write configurations, but after restarting OpenServer, all settings are reset.
The above file contains the following settings:vhg63h
# TYPE  DATABASE        USER            ADDRESS                 METHOD

# IPv4 local connections:
host    all             all             0.0.0.0/0            trust
# IPv6 local connections:
#host    all             all             ::1/128                 trust
# Allow replication connections from localhost, by a user with the
# replication privilege.
#host    replication     postgres        127.0.0.1/32            trust
#host    replication     postgres        ::1/128                 trust

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sand, 2020-11-11
@sand3001

Try uncommenting the host line for IPv6 and restarting the postgres and openrv servers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question