2

I am using local postgresql and pgadmin 4. I dropped database 'postgres' and now pgadmin won't open. How can I restore 'postgres' or fix this issue?

1

1 Answer 1

2

You have to change the definition of the "server" in pgAdmin and set the "maintenance database" to something else than postgres, for example template1.

Then you will be able to connect, and you can create the database postgres again.

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

1 Comment

Thanks! This was helpful.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.