Mam stary projekt, do którego próbuję wrócić, ale nie mogę wejść do PostgreSQL. Uruchamianie sudo -u postgres psql
daje mi:Błąd PostgreS: Żaden istniejący klaster lokalny nie jest odpowiedni jako domyślny obiekt docelowy
Error: No existing local cluster is suitable as a default target.
Please see man pg_wrapper(1) how to specify one.
Zastanawiam się, czy to może być dlatego, że uaktualniony do wersji 9.4 postgres kilka miesięcy wstecz. To jest moje wyjście dpkg --get-selections |grep postgres
:
postgresql install
postgresql-9.3 install
postgresql-9.4 install
postgresql-client-9.3 install
postgresql-client-9.4 install
postgresql-client-common install
postgresql-common install
postgresql-contrib install
postgresql-contrib-9.3 install
postgresql-contrib-9.4 install
postgresql-server-dev-9.3 install
Są to moje obecne klastry z pg_lsclusters
:
Ver Cluster Port Status Owner Data directory Log file
9.4 apps 5434 online postgres /var/lib/postgresql/9.4/apps /var/log/postgresql/postgresql-9.4-apps.log
9.4 main 5433 online postgres /var/lib/postgresql/9.4/main /var/log/postgresql/postgresql-9.4-main.log
Co mogę zrobić, aby móc ponownie uzyskać dostęp do PostgreSQL? Googling nie był zbytnio pomocny.
** Proszę zobaczyć man pg_wrapper (1) jak określić. **. Kiedy czytasz dokumentację ... –