How do I connect to PostgreSQL without specifying a database name?

You have to connect to a database. Which database you could use for a “maintenance database” depends on the installation and the subsequent administration. After a default installation there are 2 databases that could be used for the initial connection – “template1” and “postgres”. It’s wise to create a new user and a database with the same name and use those.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)