Plesk access error: No connection could be made because the target machine actively refused it

Created:

2016-11-16 12:57:22 UTC

Modified:

2017-04-24 11:32:54 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk access error: No connection could be made because the target machine actively refused it

Applicable to:

  • Plesk 11.5 for Windows
  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows

Symptoms

Plesk is not accessible with the following error:

 Internal error: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.

MySQL service is not running. The service startup fails with the following error:

ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

While running it from the command line console, the following error message appears:

"D:\\Parallels\\Plesk\\Databases\\MySQL51\\bin\\mysqld.exe" "--defaults-file=D:\\Parallels\\Plesk\\Databases\\MySQL\\Data\\my.ini"
140522 6:01:15 [ERROR] Can't find messagefile 'C:\\Program Files\\MySQL\\MySQL Server 5.6\\share\\errmsg.sys'

Cause

MySQL service is not found or it was improperly configured.

Resolution

  1. Verify that MySQL Server service is present. If not, then install it:

    %plesk_dir%\\Databases\\MySQL51\\bin\\mysqld.exe --install

    Note: for MySQL version 5.6 the path should be %plesk_dir%\\Databases\\MySQL56\\bin\\

  2. Check basedir path:

    2.1. Open ' %plesk_dir%\\Databases\\MySQL\\Data\\my.ini ' and change basedir path to MySQL51 folder.

    2.2. Start the service using services.msc console.

  3. Copy errmsg.sys file from C:\\Program Files\\MySQL\\MySQL Server 5.6\\share\\english\\ folder to C:\\Program Files\\MySQL\\MySQL Server 5.6\\share\\ folder.

  4. In case of MySQL Server upgrade failure to version 5.6, complete the upgrade manually:

    %plesk_dir%MySQL\\bin> mysql_upgrade.exe -P3306 -uadmin

Additional information:

Plesk does not recognize MySQL 5.6 and stops it after upgrade from version 5.1

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