title: Zend Server can't connect to mysql
body: <p>I've installed Zend Server CE on Windows 7 and I can't connect to MySQL. </p>
  
  <p>When I try to log into phpMyAdmin I get the following error</p>
  
  <pre><code>#2002 Cannot log in to the MySQL server
  </code></pre>
  
  <p>When I try to connect through a test PHP script like so...</p>
  
  <pre><code>$db = mysql_connect("127.0.0.1:3306", "user", "pass"); if (!$db) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully&lt;br&gt;&lt;br&gt;';
  </code></pre>
  
  <p>I get </p>
  
  <pre><code>Could not connect: No connection could be made because the target machine actively refused it. 
  </code></pre>
  
  <p>When I log into Zend Server Admin, the mysql extension is turned on. But when I look at what ports are open via the cmd command 'netstat -ano'. It doesn't show anything listening on 3306.</p>
  
  <p>I found a similar question here <a href="https://stackoverflow.com/questions/4747376/connecing-to-mysql-with-zend-server-ce">connecing to mysql with Zend Server CE</a> that points to an answer here <a href="http://forums.zend.com/viewtopic.php?f=8&amp;t=21873" rel="nofollow noreferrer">http://forums.zend.com/viewtopic.php?f=8&amp;t=21873</a> but it doesn't work for me.</p>
  
  <p>I'm don't have a my.ini file in my mysql 5.1 folder. I have the following files:</p>
  
  <p>my-huge.ini</p>
  
  <p>my-innodb-heavy-4G.ini</p>
  
  <p>my-large.ini</p>
  
  <p>my-medium.ini</p>
  
  <p>my-small.ini</p>
  
  <p>my-template.ini</p>
  
  <p>None of them have the mentioned lined for me to comment out.</p>
  
  <p>Can anyone help?</p>