title: Wamp mysql : ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
body: <p>I installed <code>wampserver</code> on my xp machine month ago.. Now when I try to connect to mysql via <code>phpmyadmin</code> or <code>mysql console</code> I get the error :</p>
  
  <blockquote>
    <p>ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost'
    (10061)</p>
  </blockquote>
  
  <p>Wamp icon in the tray is green meaning it's running ok.. I checked for mysql service and it's running and using the port 3306 .. I turned off the firewall.. I tried everything and it's not working.. I eventually uninstalled wamp totally and removed all its files and re-installed it again and same error.. When I try to <code>telnet localhost 3306</code> it doesn't connect and I get the error :</p>
  
  <blockquote>
    <p>Could not open connection to the host on port 3306: connect failed</p>
  </blockquote>
  
  <p>I searched the web for hours, but didn't find any working solution. It seems that many people are having the same problem and most of them didn't find the solution. </p>