Re: [PHP] Migration Scheme - from one mysql DB to another mysql DB
[email protected] (Teus Benschop)
| Newsgroups | php.general |
|---|---|
| Message-ID | <1268497958.28560.1.camel@2530p> |
On Sat, 2010-03-13 at 17:09 +0100, Per Jessen wrote: > > If possible, I would like to ask and have your help about the methods > > and procedures that should exist to accomplish the following task: > > I need to grab some data from one mySQL database with some specific > > table and field names, to another mySQL database with specific table > > and field names. The destination database tables are empty. > > > > What is a common procedure to do on those cases? Is there any? There may be several ways, but one way would be to open a mysqli connection to one database, another mysqli connection to the other database, then to pump all data over, optionally filtering the data. Teus.