Failed to connect to database: Unknown MySQL Server Host

Created:

2016-11-16 12:52:22 UTC

Modified:

2017-04-24 12:09:05 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Failed to connect to database: Unknown MySQL Server Host

Applicable to:

  • Plesk 12.5 for Windows

Symptoms

Unable to switch database provider or open Plesk. The following error message appears:

Failed to connect to database: Unknown MySQL Server Host 'SERVERNAME\\MSSQLSERVER' (11001)
at (MySQLDatabaseProvider::connect line 420)
at Set password(setPassword line 64)

OR

PleskMainDBException php_network_getaddresses: getaddrinfo failed: No such host is known

Cause

Incorrect value of MySQL_DB_HOST specified in HKLM\\SOFTWARE\\Wow6432Node\\PLESK\\PSA Config\\Config section of Windows registry.

Resolution

  • Open Windows registry
  • Go to HKLM\\SOFTWARE\\Wow6432Node\\PLESK\\PSA Config\\Config
  • Set MySQL_DB_HOST to localhost
  • Open Plesk Services Monitor and restart Plesk Run-time.
Have more questions? Submit a request
Please sign in to leave a comment.