title: Access denied for user 'host'@'localhost' (using password: YES)
body: <p>MySQLdb._exceptions.OperationalError: (1045, "Access denied for user 'host'@'localhost' (using password: YES)")</p>
  
  <p>i have the correct password but after trying to connect my app with sql i get this error </p>
  
  <pre><code> cur = mysql.connection.cursor()
   cur.execute("INSERT INTO user VALUES(%s)",('M'))
   mysql.connection.commit()
  </code></pre>
  
  <p>From the responses  online i should reset my password. I tried it like this:
  and after i try to reset it with :</p>
  
  <p>1.) cd /usr/local/mysql/bin</p>
  
  <p>2.) ./mysql -u root -p
  3.) i type in my password</p>
  
  <p>now no error</p>
  
  <p>Server version: 8.0.12 MySQL Community Server - GPL
  Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
  Oracle is a registered trademark of Oracle Corporation and/or its
  affiliates. Other names may be trademarks of their respective
  owners.</p>
  
  <p>Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.</p>
  
  <p>Only in the app I am trying to do.</p>