From: | John R Pierce <pierce(at)hogranch(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Ubuntu installed postgresql password failure |
Date: | 2015-09-13 21:22:55 |
Message-ID: | 55F5E92F.1020807@hogranch.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 9/13/2015 1:57 PM, Dale Seaburg wrote:
> I have reached my wit's end. lol I installed postgresql (9.3.9) and
> pgadmin3 with the Ubuntu Software Center. When using pgadmin or psql,
> I get an error "password authentication failed for user "postgres" ".
> Ubuntu (14.04.3).
>
> I created a postgres user BEFORE installing postgresql/pgadmin
> toolset. The password I used for the postgres user will not work with
> the installed postgresql tools.
>
> What in the world am I doing wrong, and more importantly, how do I
> determine the password used for postgres during the postgresql
> install? AND, why should it be different from the postgres user I
> created.
>
> Any help will be greatly appreciated.
try `su - postgres` THEN run psql
if that works, do this at that psql prompt:
CREATE USER yourname SUPERUSER PASSWORD 'somepassword';
CREATE DATABASE yourname OWNER yourname;
where yourname is your regular login. now exit psql, exit the su, and
try running pgadmin. don't specify localhost, leave the host
empty/blank, and you should be allowed to log in as yourname.
explaining why this is just as it is requires more energy than I have at
the moment.
--
john r pierce, recycling bits in santa cruz
From | Date | Subject | |
---|---|---|---|
Next Message | Giovanni Maruzzelli | 2015-09-14 06:51:57 | Re: BDR problem |
Previous Message | Jan de Visser | 2015-09-13 21:20:17 | Re: Ubuntu installed postgresql password failure |