I typed the following instruction to set up the postgresql password.
sudo su - postgres
psql -U postgres
alter user postgres with encrypted password 'my_pass';
\q
sudo su - postgres
But I met the error.
[sudo] password for postgres:my_pass
Sorry, try again.
Which thing did I miss?
I actually set the password.
Thanks.
alter useris sql command whilesudo su - postgresis OS - users are different for os and database. accordingly passwords are. usepasswdfor OS postgres passwordalter user postgres with encrypted passwd 'my_pass';? But I can't login to execute the statement.