- Plesk 12.5 for Linux
- Plesk Onyx for Linux
PostgreSQL database server is shown as not connected.
Following error is thrown while trying to access PostgreSQL server:
PLESK_ERROR: Error: The test connection to the database server has failed: pg_connect(): Unable to connect to PostgreSQL server: could not translate host name "localhost" to address: Name or service not known
Incorrect database server configuration in Plesk.
Go to Tools & Settings > Database Servers and open PostgreSQL server settings by clicking on its host name:
Change Host name or IP address value to the correct one.