What’s the best way to migrate a Django DB from SQLite to MySQL?

Execute:

python manage.py dumpdata > datadump.json

Next, change your settings.py to the mysql database.

Finally:

python manage.py loaddata datadump.json

Leave a Comment