PostgreSQL connect to database using psql

To connect to PostgreSQL database server using psql command line, run

If you have a PostgreSQL user and password, you can use

Example

-W option is to force asking password.

See PostgreSQL

Leave a Reply

Your email address will not be published. Required fields are marked *