1

I need to connect to a single postgres database but I dont know the name of the database. How can I list names of available databases from the Linux terminal ?

3

You can use:

psql -l

This requires a login but you can use the same credentials as you would for connecting to the target database

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.