PostgreSQL database server is shown as not connected in Plesk

Created:

2016-12-18 06:44:23 UTC

Modified:

2017-08-16 16:15:20 UTC

0

Was this article helpful?


Have more questions?

Submit a request

PostgreSQL database server is shown as not connected in Plesk

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

  1. PostgreSQL database server is shown as not connected.

  2. Following error is thrown while trying to access PostgreSQL server:

    Error: The test connection to the database server has failed: pg_connect(): Unable to connect to PostgreSQL server: could not translate host name "localhost1" to address: Name or service not known

Cause

Incorrect database server configuration.

Resolution

  1. Go to Tools & Settings > Database Servers .

  2. Open PostgreSQL server settings by clicking on its host name.

    alttext

  3. Change Host name or IP address value to the correct one.

Have more questions? Submit a request
Please sign in to leave a comment.