- sudo -u postgres psql template1
- ALTER USER postgres with encrypted password 'xxxxxxx';
- sudo subl /etc/postgresql/9.3/main/pg_hba.conf
#And change "peer" to "md5" on the line concerning postgres :
local all postgres peer md5
-
sudo /etc/init.d/postgresql restart
-
Try
psql -U postgres