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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
|
#2
| ||||
| ||||
| 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. |
|
#3
| |||
| |||
| Thanks, I will try it out. Rick |
|
#4
| |||
| |||
| 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 |
|
#5
| ||||
| ||||
| 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. |
|
#6
| |||
| |||
| 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; 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; Maybe I am doing something wrong and you can tell me. I appreciate you taking the time to help me. Thanks Rick |
|
#7
| |||
| |||
| Can anyone help me out. Thanks Rick |
|
#8
| |||
| |||
| 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 |
|
#9
| |||
| |||
| Actually, looking at the structure of zencart it looks a bit of a mess....kind of like a hacked-about oscommerce.... jw |
|
#10
| ||||
| ||||
| Zen Cart is a project by some of the old Osc major contributors. There may possibly be some answers at the Zen Cart forum. |
| Thread Tools | |
| |
| ||||
| 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 |