RDS for PostgreSQL
Option | Note | Example |
-h | The private or public network address of the PostgreSQL instance. For information on how to get the private or public address, refer to Connecting to an instance via private network and Applying for or releasing a public network address. | postgresbcc087e73689****.rds-pg.ivolces.com |
-p | Port number of the PostgreSQL instance. You can connect to PostgreSQL instances after adding IP address allowlists to the PostgreSQL instances. This topic describes how to connect to a PostgreSQL instance via the client and command line tool. You can connect to PostgreSQL instances after adding IP address allowlists to the PostgreSQL instances. This topic describes how to connect to a PostgreSQL instance via the client and command line tool. | 5432 |
-U | Account name in the PostgreSQL instance. | testuser |
-d | Name of the database to log on to. Note: you can omit "-d" and enter the database name only. | db01 |