title: Can't get mysqldump to connect to local mysql instance (error 2003 / 10061)
body: <p>I've got mysql 5.1 on a windows xp machine. It's listening on port 3308. I'm trying to use mysqldump:</p>
  
  <pre><code>&gt; mysqldump -u root -pmypassword dbname &gt; out.sql
  </code></pre>
  
  <p>Getting an error:</p>
  
  <pre><code>mysqldump: Got error: 2003: Can't connect to MySQL server on 'localhost' (10061) when trying to connect
  </code></pre>
  
  <p>Not sure what the problem is, looking at --help dumps variables and shows port=3308 as I set in the mysql installation (instead of default 3306). I don't think there's anything different with my installation. I also tried explicitly setting the port # on the command line but still same error.</p>
  
  <p>Thanks</p>