Data Import

Author Message

Rob Clews

Tuesday 04 November 2003 6:38:03 am

Hi,

I wish to import data from a previous database we have, however the data structure is not that obvious to do this quickly. What would be the best way to do this or is there a document showing the id mappings?

Cheers
Rob Clews

Willie Seabrook

Tuesday 11 November 2003 9:09:31 pm

I have imported data into ez from a legacy mysql database. It is a difficult thing to do:

1. Because the data model is complex and unintuitive but mostly because of
2. There is pretty much no documentation on the datamodel and how to pull accross your old data.

I suggest you look at the upgrade code provided with the ez distribution (i think) for pulling users and articles across from ez 2.2 and then modify it to simply pull data from your old database. I would not recommend *at all* modifying the database directly.

I will also point out that you need to go and get a debugger if your going to work with the ezpublish in this depth. Spending $500 or even $2000 on Zend will save you money in terms of labour by being able to see much faster how everything is set up in EZ.