How to reset the password for PostgreSQL user

We can use the following method to reset password for PostgreSQL user.

First of all login to the PostgreSQL shell as admin user.

Then run the following query.

> ALTER USER username WITH PASSWORD 'password';

Here we need to replace username and password with the required values.

That's all…

Leave a Reply

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