title: php can connect to remote sql server but command line can't
body: <p>I'm using exactly the same credentials to connect to a remote mysql server.
  host % is given to the user.</p>
  
  <p>I can connect via my php application on localhost to remote mysql server</p>
  
  <p>however whenever i do command line on localhost</p>
  
  <pre><code>mysql -u username -p'password' -h remoteserver.domain.com 
  </code></pre>
  
  <p>it throws an error </p>
  
  <pre><code>ERROR 1045 (28000): Access denied for user 'username'@'10.50.2.4' (using
   password: YES)
  </code></pre>
  
  <p>what am i missing here?</p>