Complete the code to connect to a PostgreSQL database named 'school' using psql.
psql [1] schoolThe -d option specifies the database name to connect to in psql.
Complete the command to connect to the database 'library' as user 'admin' using psql.
psql -d library [1] adminThe -U option specifies the username to connect as in psql.
Fix the error in the command to connect to host 'localhost' on port 5432 using psql.
psql -d mydb [1] localhost -p 5432
The -h option specifies the host to connect to in psql.
Fill both blanks to run a SQL file named 'setup.sql' on database 'testdb' using psql.
psql [1] testdb [2] setup.sql
Use -d to specify the database and -f to specify the SQL file to run.
Fill all three blanks to connect to database 'shop', user 'alice', host 'db.example.com' using psql.
psql [1] shop [2] alice [3] db.example.com
Use -d for database, -U for user, and -h for host in psql.
