Use DBeaver to connect to ADPG
The third-party client tool DBeaver supports different databases and can be used to connect to a PostgreSQL server.
For information on how to install DBeaver, refer to Installation.
To connect to an ADPG host, launch DBeaver and select PostgreSQL in the Connect to a database window.
![Select a database type](../_images/connect-to-adpg/select-postgresql_dark.png)
![Select a database type](../_images/connect-to-adpg/select-postgresql_light.png)
If you connect to a PostgreSQL server for the first time, select a driver.
![Select a PostgreSQL driver](../_images/connect-to-adpg/select-driver_dark.png)
![Select a PostgreSQL driver](../_images/connect-to-adpg/select-driver_light.png)
Define the connection settings in the next window.
![Connection settings](../_images/connect-to-adpg/dbeaver-settings_dark.png)
![Connection settings](../_images/connect-to-adpg/dbeaver-settings_light.png)
After the connection is established, DBeaver displays the specified database on the Database Navigator tab.
![DBeaver Database Navigator](../_images/connect-to-adpg/dbeaver-database-navigator_dark.png)
![DBeaver Database Navigator](../_images/connect-to-adpg/dbeaver-database-navigator_light.png)
If you need to change authentication settings from pg_hba.conf for the DBeaver connection, use ADCM UI. Open the Clusters page, select an ADPG cluster, and switch to the Services tab. Select the ADPG service, click the PG_HBA option on the Primary configuration tab, and edit the value.
![Edit the PG_HBA section](../_images/connect-to-adpg/edit-pghba.png)
Enter a record of the pg_hba.conf file in the pop-up window and click Apply.
![Add a PG_HBA record](../_images/connect-to-adpg/add-pghba-record.png)
To save changes and update pg_hba.conf, click Save.
![Save changes](../_images/connect-to-adpg/save-pghba-changes.png)
Execute the Reconfigure & Reload action to apply changes.
For more information on DBeaver, refer to official documentation.