title: django.db.utils.OperationalError: (1046, 'No database selected')
body: <p>Getting a strange error. I created a database in MySQL, set the database to use it. Using the right settings in my Django settings.py. But still there's an error that no database has been selected.</p>
  
  <p><strong>First I tried:</strong></p>
  
  <pre><code>python manage.py syncdb
  </code></pre>
  
  <p><strong>Got this traceback:</strong></p>
  
  <pre><code>django.db.utils.OperationalError: (1046, 'No database selected')
  </code></pre>
  
  <p><strong>settings.py:</strong></p>
  
  <pre><code>DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.mysql',
          'NAME': 'my_db',
          'USER': 'username',
          'PASSWORD': 'password',
          'HOST': 'localhost',
          'PORT': '3306',
      }
  }
  </code></pre>
  
  <p>What have I missed?</p>