I have PostgreSql 9.3 version installed in my ubuntu 14.04 machine. I just installed the 9.4 version as well and the port it is on is 5433(by default). When i give the command psql --version, it gives me the following:
psql (PostgreSQL) 9.4.1
So far so good! Now i am trying to change my password for my postgresql 9.4 and i gave the following command:
>>sudo -u postgres -p 5433 psql
psql (9.4.1, server 9.3.6)
Type "help" for help.
postgres=# alter user postgres with password 'password';
ALTER ROLE
postgres=# \q
Now i tried connecting it on pgadmin3 but it would give me the password authentication failure. Am i doing it right?