If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Create new store, move products pricing, etc

Create new store, move products pricing, etc

Locked

Started by joem83 on 29 Sep 2012, 1:09 AM · Views: 792

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
29 Sep 2012, 1:09 AM
#1
joem83 avatar

joem83

Zen Follower

Join Date:
Aug 2012
Posts:
138
Plugin Contributions:
0

Post #1 by joem83

I had a store, which had some damage to a database [the admin profiles were damaged]. I created a new store, and would like to import the products, catagory, etc. I have a copy of the SQL database. How can I import the products?

29 Sep 2012, 2:24 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

It is not adviseable to import just the products table

The tables are inter-linked such as categories tables to products tables

Best to import the full DB and proceed from there

Zen-Venom Get Bitten

29 Sep 2012, 3:50 AM
#3
joem83 avatar

joem83

Zen Follower

Join Date:
Aug 2012
Posts:
138
Plugin Contributions:
0

Post #3 by joem83

may issue is the orginal database is missing the ability to create profiles for logging into the admin page. Making a new database fixes this, but I lose all the work I did with the products. If you know of any way to bring fix this, that would help

29 Sep 2012, 5:32 AM
#4
limitless avatar

limitless

Inactive

Join Date:
Jan 2012
Posts:
496
Plugin Contributions:
0

Post #4 by limitless

Restore your backup into your new database, but do not overwrite the admin* tables.

Not sure how or if you can do that in phpMyAdmin because I don't use it, but you can selectively restore tables with HeidiSQL.

OR you can open your backup file in a decent text editor and hack out the admin* tables and import the remaining in phpMyAdmin.

29 Sep 2012, 7:42 PM
#5
joem83 avatar

joem83

Zen Follower

Join Date:
Aug 2012
Posts:
138
Plugin Contributions:
0

Post #5 by joem83

Godaddy only offer phpMyAdmin and they do the whole database not just the tables

29 Sep 2012, 8:07 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #6 by kobra

Godaddy only offer phpMyAdmin and they do the whole database not just the tables
Another example of poor tools provided

You will have to pull a full DB backup to your local and open it in a plain text editor or code editor and make the alterations manually

Zen-Venom Get Bitten

29 Sep 2012, 9:13 PM
#7
drbyte avatar

drbyte

Sensei

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

Post #7 by drbyte

Don't touch the products/categories/etc.
Replace the admin menu with a clean version, such as the new install has.
Described here: http://www.zen-cart.com/showthread.php?200377-admin-menu-broken-after-installing-many-conflicting-plugins&p=1153911#post1153911

(and yes, phpMyAdmin CAN do selective exports, just like the HeidiSQL tool can. Nothing wrong with the phpMyAdmin offering from GoDaddy)

.
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.

30 Sep 2012, 6:50 PM
#8
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #8 by schoolboy

I frequently do selective sql inserts via phpMyAdmin on zc databases... but I spent a LOT of time learning as much as I could about the zencart database's relational structure. One tiny omission or error - particularly with ID's and you will wreck everything...

20 years a Zencart User