title: apache/php/mysqli connection to remote db fails but IIS and MySQL workbench connects
body: <p>I am developing locally and connecting to a remote mysql server. I had been using IIS on my local machine (WinXP) but am now using Apache instead. Most of my PHP site is working correctly after the move to Apache.</p>
  
  <p>But - when mysqli tries to connect to the remote db I get:<br />
  (HY000/2003): Can't connect to MySQL server on '<strong><em>.</em></strong>.<em><strong>.</em></strong>:<em>*</em>*' (10060)</p>
  
  <p>I know that the server is accepting connections from my IP because I am able to connect to the same server from my local machine using MySQL Workbench.</p>
  
  <p>I also know that the db connection details I'm using with mysqli are correct because I was using the same details when running on IIS without problem, the only change that happened is that I moved from IIS to Apache.</p>
  
  <p>This problem still exists when my local firewall is disabled.</p>
  
  <p>I have very little experience with Apache, is there perhaps a config setting I've missed that prevents me from connecting out to a remote db, or something that is mangling/hiding reporting of my correct IP?</p>
  
  <p>Thanks for any help, I'm clutching at straws here...</p>