90% of the time, this error is due either to the MySQL Server not running, or else firewall configuration on the Windows server blocking access on port 3306 (or whatever port your MySQL instance is configured to use).
Error: 2003 (CR_CONN_HOST_ERROR)
Message: Can’t connect to MySQL server on ‘%s’ (%d)