postgreSQL default password

Posted August 8, 2020 1.9k views

How do I get back to my own account, when I used ‘sudo -i -u postgres’ to start the DBMS. If I’m using
'postgres@myComputer:path$ sudo -i -u myaccount’
I will be asked for a postgres password that I never applied.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Try ‘exit’ on the command line.