python manage.py dumpdata > data.json
command will dump your data to a json file
change settings.py to use mysql, after that
python manage.py syncdb
this will create tables followed by
python manage.py loaddata data.json
will load everything back
cheers
On 12/29/2010 01:37 AM, Emmanuel Mayssat wrote:
> I have a classic database dump question....
>
> I would like to migrate from sqlite to mysql.
> How can I dump and import the data?
> Regards,
> --
> E
>
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment