osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

database export/import

This is a discussion on database export/import within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Hi, We currently have an existing store using zencart. I am considering switching to the ms-max version of osCommerce ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-24-2004, 07:26 AM
New Member
 
Join Date: Dec 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
rick
Default database export/import

Hi,

We currently have an existing store using zencart. I am considering switching to the ms-max version of osCommerce for several reasons. My big concern is my existing database. Is there a utility that will bring my zencart data over to msmax/osc database without losing anything?

Thanks in advance.

Rick
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 12-24-2004, 08:10 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,170
Thanks: 66
Thanked 290 Times in 276 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default RE: database export/import

Basically, you need to make your existing db match structure with the max db. Then you can simply export the data to a sql batch file and run it on the max DB. I suggest working on a copy of your Zen DB, not the original.

Use a tool like MysqlDiff to compare the databases and generate the update scripting. Google mysqldiff for the application.
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 12-24-2004, 08:17 AM
New Member
 
Join Date: Dec 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
rick
Default RE: database export/import

Thanks, I will try it out.

Rick
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 12-25-2004, 03:09 PM
New Member
 
Join Date: Dec 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
rick
Default

OK,

I have spent just about all day trying to get this done and I am not getting anywhere.

Is there anyone here who can convert this database for me?

Thanks

Rick
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 12-25-2004, 08:34 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,170
Thanks: 66
Thanked 290 Times in 276 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Hi Rick,

It is fairly easy to do, so tell me where you are getting stuck and I can help you out...

Did you get mysqldiff? Did you install it and get it running? Let me know, I am sure I can talk you through it.
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 12-25-2004, 09:47 PM
New Member
 
Join Date: Dec 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
rick
Default

Hi,

Thanks for your help. Yes I got it, installed it and ran it I don't know how many times. I ran it locally and on the server. The database is about 15 megs and on the server I would get the time out problem if I used the create insert/replace option and locally it did not go as far as it did on the server. Very weird.

Locally I tried using the sql and the database option and got nowhere with either one.

As I understand it I use my source file (current zen database) and my target file (current max database) and then run the script it creates. The script basically makes a create statement for all the new max tables and then drops all the zen tables and is supposed to give me the replace/insert statements to import if I choose that option.

Is that how you understand it to work?

Here is what the script produces concerning my customer table:
Below is the max table created
Code:
CREATE TABLE customers (
    customers_id int(11) NOT NULL DEFAULT 0 auto_increment,
    purchased_without_account tinyint(1) unsigned NOT NULL DEFAULT '0',
    customers_gender char(1) NOT NULL DEFAULT '',
    customers_firstname varchar(32) NOT NULL DEFAULT '',
    customers_lastname varchar(32) NOT NULL DEFAULT '',
    customers_dob datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
    customers_email_address varchar(96) NOT NULL DEFAULT '',
    customers_default_address_id int(11) NOT NULL DEFAULT '0',
    customers_telephone varchar(32) NOT NULL DEFAULT '',
    customers_fax varchar(32) NULL DEFAULT NULL,
    customers_password varchar(40) NOT NULL DEFAULT '',
    customers_newsletter char(1) NULL DEFAULT NULL,
    customers_group_name varchar(27) NOT NULL DEFAULT 'Retail',
    customers_group_id int(11) NOT NULL DEFAULT '0',
    PRIMARY KEY (customers_id),
    INDEX purchased_without_account (purchased_without_account)
) TYPE=MyISAM;
Here is what the script produced from my customer table in the zen database:

Code:
CREATE TABLE zen_customers (
    customers_id int(11) NOT NULL DEFAULT 0 auto_increment,
    customers_gender char(1) NOT NULL DEFAULT '',
    customers_firstname varchar(32) NOT NULL DEFAULT '',
    customers_lastname varchar(32) NOT NULL DEFAULT '',
    customers_dob datetime NOT NULL DEFAULT '0001-01-01 00:00:00',
    customers_email_address varchar(96) NOT NULL DEFAULT '',
    customers_nick varchar(96) NOT NULL DEFAULT '',
    customers_default_address_id int(11) NOT NULL DEFAULT '0',
    customers_telephone varchar(32) NOT NULL DEFAULT '',
    customers_fax varchar(32) NULL DEFAULT NULL,
    customers_password varchar(40) NOT NULL DEFAULT '',
    customers_newsletter char(1) NULL DEFAULT NULL,
    customers_group_pricing int(11) NOT NULL DEFAULT '0',
    customers_email_format varchar(4) NOT NULL DEFAULT 'TEXT',
    customers_authorization int(1) NOT NULL DEFAULT '0',
    customers_referral varchar(32) NOT NULL DEFAULT '',
    PRIMARY KEY (customers_id)
) TYPE=MyISAM;
These both came from the file that mysqldiff produced. I just used the switch key to flip back and forth. You can see that neither one match so how will I be able to export/import my data?

Maybe I am doing something wrong and you can tell me. I appreciate you taking the time to help me.

Thanks


Rick
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 12-29-2004, 09:58 AM
New Member
 
Join Date: Dec 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
rick
Default

Can anyone help me out.

Thanks

Rick
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 12-29-2004, 11:22 AM
Active Member
 
Join Date: Jan 2003
Location: Surrey, UK
Posts: 126
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jonthewebb
Default

Hi Rick

I've never used Zencart before, but looking at the db structure I can see that you can transfer across most of the structure fairly easily, but there are some incompatible features which could cause minor upsets. For example customer account histories might not work properly. You should be able to transfer across all customers, products, categories. There are several strange looking tables in zencart (records, media, record companies?!?!?!!?) which would be lost.

I should be able to carry out the conversion but it might cost up to £200, would need to see the structure first, you could probably find someone to do it for less!


jon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 12-29-2004, 11:24 AM
Active Member
 
Join Date: Jan 2003
Location: Surrey, UK
Posts: 126
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jonthewebb
Default

Actually, looking at the structure of zencart it looks a bit of a mess....kind of like a hacked-about oscommerce....


jw
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 12-29-2004, 05:23 PM
neil's Avatar
Active Member
 
Join Date: Nov 2002
Posts: 245
Thanks: 9
Thanked 7 Times in 6 Posts
Rep Power: 6
neil is on a distinguished road
Default

Zen Cart is a project by some of the old Osc major contributors.
There may possibly be some answers at the Zen Cart forum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Database import fails nomi osCommerce 2.2 Installation Help 1 04-28-2004 05:56 AM
Error Import database dc25 osCommerce 2.2 Installation Help 0 12-08-2003 12:08 AM
New Installation / Database Import redobe osCommerce 2.2 Installation Help 2 11-25-2003 10:43 AM
Database import sverker osCommerce 2.2 Installation Help 4 11-24-2003 01:26 PM
Can you export / import ur categories mickthefish osCommerce 2.2 Installation Help 0 09-16-2003 04:05 PM


All times are GMT -8. The time now is 01:55 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax