doc-exports/docs/rds/umn/rds_faq_0029.html
Ru, Li Yi 0a6e0e835a rds_umn
Reviewed-by: Székely, Ond <ond.szekely@t-systems.com>
Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com>
Co-authored-by: Ru, Li Yi <liyiru7@huawei.com>
Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
2024-08-12 07:07:48 +00:00

4.5 KiB

How Can I Install the PostgreSQL Client?

PostgreSQL provides client installation methods for different OSs on its official website.

The following describes how to install a PostgreSQL 15 client in CentOS.

Procedure

  1. Log in to an ECS.

    1. When you create an ECS, select an OS like CentOS 7 and bind an EIP to it.
    2. Use a remote connection tool to connect to the ECS through the EIP.

  2. Open the client installation page.
  3. Select a DB engine version, OS, and OS architecture, and run the following commands on the ECS to install a PostgreSQL client.

    sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
    Figure 1 Installing a client
    • Select a DB engine version that is consistent with that of your RDS for PostgreSQL instance.
    • Select an OS that is consistent with that of the ECS.
    • Select an OS architecture that is consistent with that of the ECS.
    Figure 2 Installing the RPM package
    Figure 3 Client installed

  4. Connect to the RDS for PostgreSQL instance.

    Figure 4 Connection successful