title: Error during Django "Running migrations": django.db.utils.OperationalError: (2013, 'Lost connection to MySQL server during query')
body: <p>My Django project is connect to the remote MySQL database.</p>
  
  <p>After I created all the model classes in Django, I tried</p>
  
  <pre><code>python manage.py makemigrations
  </code></pre>
  
  <p>Everything is fine. Then I entered</p>
  
  <pre><code>python manage.py migrate
  </code></pre>
  
  <p>Then an error occurred during "Running migrations:", "Applying event.0002_auto_20150904_2141..."</p>
  
  <p>Error code:</p>
  
  <pre><code>django.db.utils.OperationalError: (2013, 'Lost connection to MySQL server during query')
  </code></pre>
  
  <p>Does anyone know what might cause this error? I followed the exact procedures in the official Django tutorial.</p>