On 10/27/06, Tom Smith <[EMAIL PROTECTED]> wrote:

> Is there a way to do a complete dump, re-build the database and then
> import stuff (avoiding import errors... i.e doing some form of
> coercion)?

Use mysqldump with the --no-create-info option which avoids dumping
the table schemas. Drop the databse, use Django's syncdb to create the
tables, and then reload from your mysqldump output. If you hvae
deleted or renamed columns, this could be a problem. You should also
have a complete dump as a backup.

Another thing is to compare the output of Django's sqlall with the
output of mysqldump --no-data (dumps all table schema).

-- 
This message has been scanned for memes and
dangerous content by MindScanner, and is
believed to be unclean.

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to