Friday, October 24, 2014

Re: Merge two Databases into one

On Fri, Oct 24, 2014 at 1:17 PM, Ram Ganesh <ramganesh7k@gmail.com> wrote:
> Hi all,
>
> I want to append my datas from old_db to new_db
> they have exactly the same structure,
>
> I'm trying to Write a Script using Django Manually selecting a database
> -Read data from old_db and Write it into new_db
> -But not sure its work fine with maintaining foreign key relationships.
>
> what do you think would be the best solution for my problem?
>
> using MySql,
> Django 1.3

If this is just a one time thing, I'd just write a python script. Or
you could dump the old_db using --no-create-info and then load it to
the new db from the command line.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACwCsY5-OTAQ_8BPfkX346_Sd_zQn0MZgNPyByKqLb5OxjFOOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment