1

I did not know what the database did and I deleted it without realizing that now I wouldn't be able to run psql again. How do I get thngs back to normal again?

1 Answer 1

3

The postgres database isn't really needed.

But you can re-create it using:

psql -U postgres -d template1
psql (13.1)

postgres=# create database postgres;

The -d template1 tells psql to connect to the template1 database.

Sign up to request clarification or add additional context in comments.

1 Comment

that worked, thanks! I was afraid that postgres was the only way in..

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.