psql could not connect to server after complete reinstallation [Ubuntu 21.10 / PostgreSQL 13]

Поиск
Список
Период
Сортировка
От Jérémy Garniaux
Тема psql could not connect to server after complete reinstallation [Ubuntu 21.10 / PostgreSQL 13]
Дата
Msg-id 9e818078-3773-ba04-2ee8-eb7d1ef79439@mapper.fr
обсуждение исходный текст
Ответы Re: psql could not connect to server after complete reinstallation [Ubuntu 21.10 / PostgreSQL 13]  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
Hi,

After experiencing issues related to the existence of two different 
PostgreSQL versions installed on the same machine, I decided to do a 
"remove --purge postgresql*" and reinstall postgresql-13. Now the output 
of "psql --version" is "psql (PostgreSQL) 13.4 (Ubuntu 13.4-1)". 
However, trying to enter psql, I have this error:

psql: error: could not connect to server: Aucun fichier ou dossier de ce 
type
     Is the server running locally and accepting
     connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

I assume this has been asked many times, but I tried different solutions 
proposed on similar posts and none solved my issue.

Thanks,

Best regards

Jeremy




В списке pgsql-general по дате отправления:

Предыдущее
От: Tore Halvorsen
Дата:
Сообщение: Re: pg_dump and pg_restore and foreign keys
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: psql could not connect to server after complete reinstallation [Ubuntu 21.10 / PostgreSQL 13]