2

I have developed a Django App using SQLite and now I need to migrate it to MySQLl.

MY question here is if there is a way to migrate all the data from SQLite to MySQL. The SQLite database have many data that will be a pain to migrate by hand to the MySQL. South will help to migrate the schema only or can help also to migrate the data?

Best Regards,

4

1 回答 1

1

您可以使用dumpdata命令转储SQLite数据:

./manage.py dumpdata app1 app2 app3 ... > dump.data

然后,使用loaddata命令将转储的数据加载到MySQL

./manage.py loaddata dump.data
于 2013-09-11T12:48:20.210 回答