- 31.3k
- 22
- 110
- 134
For my case on Ubuntu 14.04 (Trusty Tahr), installed with PostgreSQL 10.3: I need to follow the following steps
su - postgresto switch the user topostgrespsqlto enter the PostgreSQL shell\passwordand then enter your passwordQ to quit the shell session
Then you switch back to root by executing
exitand configure yourpg_hba.conf(mine is at/etc/postgresql/10/main/pg_hba.conf) by making sure you have the following linelocal all postgres md5Restart your PostgreSQL service by
service postgresql restartNow switch to the
postgresuser and enter the PostgreSQL shell again. It will prompt you for a password.
For my case on Ubuntu 14.04 (Trusty Tahr), installed with PostgreSQL 10.3: I need to follow the following steps
su - postgresto switch the user topostgrespsqlto enter the PostgreSQL shell\passwordand then enter your passwordQ to quit the shell session
Then you switch back to root by executing
exitand configure yourpg_hba.conf(mine is at/etc/postgresql/10/main/pg_hba.conf) by making sure you have the following linelocal all postgres md5Restart your PostgreSQL service by
service postgresql restartNow switch to
postgresuser and enter the PostgreSQL shell again. It will prompt you for a password.
For my case on Ubuntu 14.04 (Trusty Tahr), installed with PostgreSQL 10.3: I need to follow the following steps
su - postgresto switch the user topostgrespsqlto enter the PostgreSQL shell\passwordand then enter your passwordQ to quit the shell session
Then you switch back to root by executing
exitand configure yourpg_hba.conf(mine is at/etc/postgresql/10/main/pg_hba.conf) by making sure you have the following linelocal all postgres md5Restart your PostgreSQL service by
service postgresql restartNow switch to the
postgresuser and enter the PostgreSQL shell again. It will prompt you for a password.
- 31.3k
- 22
- 110
- 134
For my case on Ubuntu 14.04Ubuntu 14.04 (Trusty Tahr), installed with postgresPostgreSQL 10.3.: I need to follow the following steps
su - postgresto switch the user topostgrespsqlto enter postgresthe PostgreSQL shell\passwordand then enter your password\qQ to quit the shell sessionThen you switch back to root by executing
exitand configure yourpg_hba.conf(mine is at/etc/postgresql/10/main/pg_hba.conf) by making sure you have the following linelocal all postgres md5Restart your postgresPostgreSQL service by
service postgresql restartNow switch to
postgresuser and enter postgresthe PostgreSQL shell again. It will prompt you withfor a password.
For my case on Ubuntu 14.04 installed with postgres 10.3. I need to follow the following steps
su - postgresto switch user topostgrespsqlto enter postgres shell\passwordthen enter your password\qto quit the shell sessionThen you switch back to root by executing
exitand configure yourpg_hba.conf(mine is at/etc/postgresql/10/main/pg_hba.conf) by making sure you have the following linelocal all postgres md5Restart your postgres service by
service postgresql restartNow switch to
postgresuser and enter postgres shell again. It will prompt you with password.
For my case on Ubuntu 14.04 (Trusty Tahr), installed with PostgreSQL 10.3: I need to follow the following steps
su - postgresto switch the user topostgrespsqlto enter the PostgreSQL shell\passwordand then enter your passwordQ to quit the shell session
Then you switch back to root by executing
exitand configure yourpg_hba.conf(mine is at/etc/postgresql/10/main/pg_hba.conf) by making sure you have the following linelocal all postgres md5Restart your PostgreSQL service by
service postgresql restartNow switch to
postgresuser and enter the PostgreSQL shell again. It will prompt you for a password.
For my case on Ubuntu 14.04 installed with postgres 10.3. I need to follow the following steps
su - postgresto switch user topostgrespsqlto enter postgres shell\passwordthen enter your password\qto quit the shell sessionThen you switch back to root by executing
exitand configure yourpg_hba.conf(mine is at/etc/postgresql/10/main/pg_hba.conf) by making sure you have the following linelocal all postgres md5Restart your postgres service by
service postgresql restartNow switch to
postgresuser and enter postgres shell again. It will prompt you with password.