title: django unable to connect mysql server on aws
body: <p>my django version is 2.0.1, i would like to connect with mysql. Database which is located on a amzon ec2 </p>
  
  <p><a href="https://i.stack.imgur.com/cziXt.png" rel="nofollow noreferrer">I get this error when I'm running the Django server : </a></p>
  
  <p>this is my settings.py 
  DATABASES = {</p>
  
  <pre><code>    'default': {
          'ENGINE': 'django.db.backends.mysql', 
          'NAME': 'graph',
          'USER': 'root',
          'PASSWORD': 'password',
          'HOST': 'hostname',   # Or an IP Address that your DB is hosted on
          'PORT': '3306',
      }
  }
  </code></pre>