How to change root password for PostgreSql phpPgAdmin?

9,494

Solution 1

# sudo su - postgres
# psql -d template1
template1=# ALTER USER postgres WITH PASSWORD 'new password';
# service postgresql restart

Solution 2

• sudo su - postgres
• psql
• \password postgres
• TYPE THE POSTGRES PASSWORD
• \q
• exit
Share:
9,494

Related videos on Youtube

J.Olufsen
Author by

J.Olufsen

Passion for crafting state of the art software that makes an impact

Updated on September 18, 2022

Comments

  • J.Olufsen
    J.Olufsen over 1 year

    What is the simplest way to change root password for PostgreSql phpPgAdmin ?

  • VinoCoder
    VinoCoder over 4 years
    Please add explanation for the commands :)