“Redefinir Windows de senha PostGresql” Respostas de código

Como redefinir a senha do PostGresql esquecido

# 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
Smiling Snake

Redefinir janelas de senha do Postgres

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.
David Diamant

Redefinir Windows de senha PostGresql

pg_ctl -D "C:\Program Files\PostgreSQL\12\data" restart
Langage de code :  JavaScript  ( javascript )
Enthusiastic Eel

Respostas semelhantes a “Redefinir Windows de senha PostGresql”

Perguntas semelhantes a “Redefinir Windows de senha PostGresql”

Mais respostas relacionadas para “Redefinir Windows de senha PostGresql” em Sql

Procure respostas de código populares por idioma

Procurar outros idiomas de código