Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
329 B
0
Indexable
Never
    • Open the pg_hba.conf file using any text editor. It is located at /etc/postgresql/[major.minor]/main/pg_hba.conf eg /etc/postgresql/12/main/pg_hba.conf location.
    • Change the following line
      local   all    postgres        peer
      to
      local   all    postgres        md5

sudo service postgresql restart