Re: Ubuntu installed postgresql password failure
| От | John R Pierce |
|---|---|
| Тема | Re: Ubuntu installed postgresql password failure |
| Дата | |
| Msg-id | 55F5E92F.1020807@hogranch.com обсуждение исходный текст |
| Ответ на | Ubuntu installed postgresql password failure (Dale Seaburg <kg5lt@verizon.net>) |
| Список | 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
В списке pgsql-general по дате отправления: