Connect to a PostgreSQL database using psql
List tables in current database
Connect to MySQL database
Connect to PostgreSQL database
psql -h localhost -U username -d database
Connect to database
psql -h localhost -U postgres -d mydb
Connect with connection string
psql postgresql://user:pass@localhost:5432/mydb
Create a new PostgreSQL database
Delete a PostgreSQL database
List all databases