This article describes how to connect to a PostgreSQL database from the command line using the psql program. You can use the psql program as a quick and easy way to access your databases directly.
To connect to PostgreSQL from the command line, follow these steps:
psql dbname username
After you access a PostgreSQL database, you can run SQL queries and more. Here are some common psql commands:
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.