Setting a password for the postgres user on Linux
6 August, 2020 by
Setting a password for the postgres user on Linux
PT. KIN SOFT INDONESIA, Admin Kinsoft

On Linux systems, there is no default password set.

To set the default password:

  1. Run the psql command from the postgres user account:

    sudo -u postgres psql postgres
    
  2. Set the password:

    \password postgres
    
  3. Enter a password.

    1. Close psql.

      \q
      
Setting a password for the postgres user on Linux
PT. KIN SOFT INDONESIA, Admin Kinsoft
6 August, 2020
Share this post
Archive