Now that we have created the database instance, let's connect to it using psql, which is a command-line utility. The parameters are as follows:
- The database host.
- The port.
- The database master user that was supplied during instance creation.
- The database that was requested during instance creation:
Ameyas-MacBook-Pro:~ Webonise$ psql -h letspolldb.c9mlwulrnppz.us-west-1.rds.amazonaws.com -p 5432 -U letspollDB_master -W letsPollPassword for user letspollDB_master: psql (9.6.1, server 9.6.6)SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)Type "help" for help.letsPoll=>