how to login in to psql with your admin details

354 views Asked by At

hi am following the following tutorial

https://www.youtube.com/watch?v=qw--VYLpxG4&t=2224s

and when i add psql into my path and then type it into the terminal it asks for my administrator datails of which i give then it shows this

psql: error: FATAL:  password authentication failed for user "aarushsharma"

how do i find out the password for aarushsharma?

1

There are 1 answers

8
Sargis Kazaryan On BEST ANSWER

try to change METHOD in pg_hba.conf file from md5 to trust, restart postgresql server and change your user password

ALTER USER aarushsharma WITH PASSWORD 'your_password';

and set METHOD to md5 again