Change Postgres Password


To change the the postgres user’s password follow this steps

  1. Login into the psql:
$ sudo -u postgres psql
  1. Then in the psql console change the password and quit:
postgres=# password postgres
Enter new password: <new-password>
postgres=# q

Leave a Comment

Your email address will not be published. Required fields are marked *