Forums / Upgrading from 1.3.x to 1.3.9 / Moving the Data to the new DB

Moving the Data to the new DB

Locked

Views: 2,305

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
8 Feb 2009, 11:00 PM
#1
ianselby avatar

ianselby

New Zenner

Join Date:
Jul 2007
Posts:
8
Plugin Contributions:
0

Moving the Data to the new DB

Hi All,

I am after a bit of guidance. I have a shop I am working on and I started development on 1.3.7 however I want to upgrade to 1.3.8a. I have installed a second cart on my pc and have installed my addons (IH2 and EasyPopulate) both of which have installed fine.

I have now tried backing up my old db and importing it to the new cart. I get a message saying that some 200 odd query executions were made. However when i log into my second cart nont of the categories or products are there only the demo data I had previously installed.

Any help appreciated.

Regards,

Ian

9 Feb 2009, 12:31 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Moving the Data to the new DB

You're using different table-prefixes in your different databases, which is why after importing you see no change in the data ... because your import loaded a whole different set of tablenames.
You'll need to update your new site's DB_PREFIX setting in your configure.php files to match the prefix you used on the old site.
Then you'll need to do the database-upgrade using zc_install

And, then any database updates for any addons you've installed on the new site will have to be redone.

Basically, you're doing an upgrade. You'll find upgrade documentation in the FAQ area, as well as in the /docs/ folder of your site files.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

10 Feb 2009, 10:20 PM
#3
ianselby avatar

ianselby

New Zenner

Join Date:
Jul 2007
Posts:
8
Plugin Contributions:
0

Re: Moving the Data to the new DB

Thanks DrByte. That did the trick, I suppose the docs on upgrading got a little confusing with all the winmerge stuff. I jsut assumed as I was just taking the data over to clean install I could just export an import.

Anyhow using the install folder and running the DB upgrade did the trick.

Thanks again

Ian

23 Apr 2009, 2:43 PM
#4
gcampos avatar

gcampos

New Zenner

Join Date:
May 2007
Posts:
93
Plugin Contributions:
0

Re: Moving the Data to the new DB

ok I want to make sure this will do the trick for me, before I go screw up the db.... going from 1.3.7 (mysql 4.1) to 1.3.8 (mysql 5.0);

I was at one time playing with 138a on a new install, and created some new categories, sub categories, etc., all the while my 137 store was fully active. Recently I moved all my sites to a virtual server, and while in transition I installed a new store, after backing up store and db, then ftp the 1.3.8 stores back up (one I was playing with) and overwrote the new install. Then I dropped the tables on the new db, and imported the old db, and wahla it worked (after numerous attempts).

So now I want to import my mysql 4.1 db (from 1.3.7) into the 1.3.8a store and db... do I follow this thread to "upgrade" my db? or should i try a different way.

Thanks

24 Apr 2009, 12:21 AM
#5
gcampos avatar

gcampos

New Zenner

Join Date:
May 2007
Posts:
93
Plugin Contributions:
0

Re: Moving the Data to the new DB

update: looks like everything went well, I now have the old db from 137 working in the new store of 138. I followed the info above and it worked fine, for those wondering.

G