Answers for "reset postgres password windows"

2

reset postgres password windows

Backup the pg_hba.conf file by copying it.
Edit the pg_dba.conf, change `METHOD` to 'trust'
Restart the PostgreSQL server.
psql -U postgres.
ALTER USER postgres WITH PASSWORD 'new_password';
Restore the pg_dba.conf file.
Restart the PostgreSQL server.
Posted by: Guest on February-23-2021
0

How to reset forgotten postgresql password

# sudo -u postgres psql
could not change directory to "/root"
psql (9.1.11)
Type "help" for help.

postgres=# \password
Enter new password:
Enter it again:
postgres=# \q
Posted by: Guest on May-02-2021
0

how to reset postgres password

sudo sed -ibak 's/^\([^#]*\)md5/\1trust/g' /opt/bitnami/postgresql/conf/pg_hba.conf
sudo -u postgres pg_ctl reload
Posted by: Guest on January-14-2021
-1

reset password postgres ubuntu

\password sde
Posted by: Guest on November-13-2020

Code answers related to "reset postgres password windows"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language