/usr/local/var/postgres/
をrm -rしたのが原因か
デフォルトの
psql -U postgres
psql: FATAL: role "postgres" does not exist
ができなくなってしまいました。
shell
1Apple-no-Air:~ Apple$ psql -l 2 List of databases 3 Name | Owner | Encoding | Collate | Ctype | Access privileges 4-----------+-------+----------+---------+-------+------------------- 5 postgres | Apple | UTF8 | C | C | 6 template0 | Apple | UTF8 | C | C | =c/Apple + 7 | | | | | Apple=CTc/Apple 8 template1 | Apple | UTF8 | C | C | =c/Apple + 9 | | | | | Apple=CTc/Apple 10(3 rows) 11 12Apple-no-Air:~ Apple$ psql -U postgres 13psql: FATAL: role "postgres" does not exist 14Apple-no-Air:~ Apple$ psql -U Apple 15psql: FATAL: database "Apple" does not exist 16Apple-no-Air:~ Apple$
これはどうしたらいいんでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/05/04 13:08
2019/05/04 13:29