title: mysql_exceptions.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: YES)")
body: <p>I've started working with django, and here is the error on 'runserver' after setting up 'DATABASES' in settings.py</p>
  
  <pre><code>mysql_exceptions.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: YES)") 
  </code></pre>
  
  <p>My settings.py portion of code:</p>
  
  <pre><code>DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
          'NAME': 'my_site',                      # Or path to database file if using sqlite3.
          'USER': 'root',                      # Not used with sqlite3.
          'PASSWORD': 'root',                  # Not used with sqlite3.
          'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
          'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
      }
  
  }
  </code></pre>
  
  <p>I've created 'my_site' database and privileges are set in the right way (root has all privileges). 
  I've done this operations with 'phpmyadmin'.</p>
  
  <p>What goes wrong?</p>