Resettare la password dell'utente postgres in Debian

From RVM Wiki
Jump to navigation Jump to search
  • Impostare la password dell'utente unix
sudo passwd postgres
  • Loggarsi come postgres
sudo -u postgres -i
  • Impostare la password dell'utente database:
psql -c "ALTER USER postgres WITH PASSWORD 'changeme'" -d template1

Riferimenti