Sono un novizio di Postgres.
Ho installato postgres.app per mac. Stavo giocando con i comandi psql e ho accidentalmente lasciato cadere il database postgres. Non so cosa ci fosse dentro.
Attualmente sto lavorando a un tutorial: http://www.rosslaird.com/blog/building-a-project-with-mezzanine/
E sono bloccato a sudo -u postgres psql postgres
MESSAGGIO DI ERRORE: psql: FATAL: role "postgres" does not exist
$ quale psql
/Applications/Postgres.app/Contents/MacOS/bin/psql
Questo è ciò che stampa psql -l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
------------+------------+----------+---------+-------+---------------------------
user | user | UTF8 | en_US | en_US |
template0 | user | UTF8 | en_US | en_US | =c/user +
| | | | | user =CTc/user
template1 | user | UTF8 | en_US | en_US | =c/user +
| | | | | user =CTc/user
(3 rows)
Quindi quali sono i passi che dovrei prendere? Eliminare un tutto relativo a psql e reinstallare tutto?
Grazie per l'aiuto ragazzi!
brew services start postresql
sia eseguito.