I've set up a VirtualHost
on my local machine (Windows XP with XAMP installed) and installed Zend
there as well, now I'm trying to connect to the MySQL
database and I get the following error message:
Message: SQLSTATE[HY000] [2003] Can't connect to MySQL server on ''myhost.com'' (10060)
All the tips I've found via Google
haven't helped. I use Kaspersky AntiVirus
and have added port 3306
to the allowed list for MySQL
and Apache. I've also pinged myhost.com:3306
and get a response (with IP address 67.63.50.51
), though localhost:3306
and 127.0.0.1:3306
aren't found. I've checked that other WebApps can still access MySQL
if the virtual host is pointed at them instead and my non Zend Apps do work.
I guess I have to do something further to the port, or maybe force the App to use a different port, but am not sure how to do either.
Any help appreciated.