title: Django migrate from sqlite3 to mysql
body: <p>I am trying to migrate my Django app from SQLite3 to MySql. I took following steps</p>
  <ol>
  <li>Configured a new empty database on MySql. I did not create any tables because I assumed that the tables will be created by the migrate command.</li>
  <li>Created a new user who has access to this database <code>CREATE USER 'djangouser'@'%' IDENTIFIED WITH mysql_native_password BY 'password';GRANT ALL ON djangoappdb.* TO 'djangouser'@'%';</code></li>
  <li>Stopped the server</li>
  <li>Dumped all the data to a file using <code>python3 manage.py dumpdata &gt; currData</code></li>
  <li>Deleted all the existing migrations</li>
  <li>reran <code>python3 manage.py makemigrations</code>. This step created a single new migration file</li>
  <li>Changed the setting.py file to use MySql and djangoappdb with correct username and password.</li>
  <li>ran <code>python3 manage.py migrate</code> command. I get following error</li>
  </ol>
  <pre><code>...
  File &quot;/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py&quot;, line 319, in _query
      db.query(q)
    File &quot;/usr/local/lib/python3.8/dist-packages/MySQLdb/connections.py&quot;, line 259, in query
      _mysql.connection.query(self, query)
  django.db.utils.ProgrammingError: (1146, &quot;Table 'djangoappdb.djangoapp_customuser' doesn't exist&quot;)
  </code></pre>
  <p>customuser is one of the models in the app. Am I supposed to create the tables manually?</p>
  <p><strong>EDIT2</strong> Here is the customuser model in case it is requested</p>
  <pre><code>from django.contrib.auth.models import AbstractUser, Group
  # CustomUser:
  class CustomUser(AbstractUser):
      pass
      # add additional fields later
  
      def __str__(self):
          return self.username
  </code></pre>