title: Access mysql remote database from command line
body: <p>I have a server with Rackspace. I want to access the database from my local machine command line.</p>
  <p>I tried like:</p>
  <pre><code>mysql -u username -h my.application.com -ppassword
  </code></pre>
  <p>But it gives an error:</p>
  <blockquote>
  <p>ERROR 2003 (HY000):</p>
  <p>Can't connect to MySQL server on 'my.application.com' (10061)</p>
  </blockquote>
  <p>What causes this error and how can I connect to the remote database?</p>