I've been learning postgresql recently and made a lot of mistakes with the project I started with so I decided to drop the whole database which was called postgres.
And I kept receiving this message:
[55006] error: cannot drop the currently open database
so I closed it by force using:
DROP DATABASE postgres WITH (force)
and now I can't create new data sources or log in to my postgres account and I keep receiving this error:
error: connection to server at "localhost" (::1), port 5432 failed: FATAL: database "postgres" does not exist
what can I do about it?
I couldn't find a solution I could try because I haven't found a similar problem yet please direct me to a solution