title: using mysqldump in cmd to backup database getting access denied
body: <p>I am getting error (access denied) when trying to backup MySQL database using below query:</p>
  
  <pre><code>mysqldump -uroot -ppassword testing &gt; testing.sql
  </code></pre>
  
  <p>However, I was able to log in to MySQL using cmd with below query </p>
  
  <pre><code>mysql -uroot -ppassword
  </code></pre>
  
  <p>so I am sure my username and password is not wrong. Can anyone help me why I am getting access denied in mysqldump?</p>