Plesk Mysql fails: Unknown mysql server host'localhost'

Created:

2016-11-16 13:15:45 UTC

Modified:

2017-04-24 11:16:51 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk Mysql fails: Unknown mysql server host'localhost'

Applicable to:

  • Plesk 10.4 for Windows
  • Plesk 11.5 for Windows
  • Plesk 12.0 for Windows

Symptoms

Plesk Mysql service does not connect to Mysql server, it fails with error:

    Unknown mysql server host 'localhost'(0)

Cause

Mysql tries to connect to localhost, but system cannot recognize localhost address as 127.0.0.1.

Resolution

  1. Modify list of host names for your system C:\\Windows\\System32\\drivers\\etc\\hosts . Make sure that you have the following entry:
    127.0.0.1 localhost
Have more questions? Submit a request
Please sign in to leave a comment.