osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Converting DB from OSC2.2 to OSCMAX2.2

This is a discussion on Converting DB from OSC2.2 to OSCMAX2.2 within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; I have it working now... It didn't want to work quite right doing the entire db at once so instead ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #21  
Old 02-18-2008, 03:27 AM
Member
 
Join Date: Aug 2007
Posts: 68
Thanks: 9
Thanked 1 Time in 1 Post
Rep Power: 2
tcshadow is on a distinguished road
Default Re: Converting DB from OSC2.2 to OSCMAX2.2

I have it working now... It didn't want to work quite right doing the entire db at once so instead what I do is export the table I want, then drop that table out of my oscmax database and recreate it including all of the osc2.2 data from the export.

TY for all the help Michael... I appreciate the patience
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #22  
Old 02-18-2008, 06:59 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,985
Thanks: 80
Thanked 345 Times in 324 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: Converting DB from OSC2.2 to OSCMAX2.2

Yes, osCMax has lots of extra columns and tables. If you don't upgrade the osC 2.2 db to have them present with mysqldiff, you will get errors. That is the whole point of using mysqldiff.

Glad you have it working.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • 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. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23  
Old 05-29-2008, 02:55 PM
Lurker
 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
drawed is on a distinguished road
Default Re: Converting DB from OSC2.2 to OSCMAX2.2

Sorry to beat this dead horse back to life but I figured I would share my struggle in hopes of helping others in the future. I marched through a bunch of the mysqldiff postings and feel I understand what is going on but I'm missing the final piece.

What I've done:
Created a temp_osc DB that received a copy of my live_osc DB
Dropped tables that I felt I didn't need (kept cust/product related)
Created a temp_max DB that received a copy of my fresh osCMAx DB

Generated the mysqldiff.sql and removed the problematic default = <foo> entries. (scrubbed.sql)
Imported the resulting scrubbed.sql to my temp_osc DB
Exported temp_osc DB after the import above. (final.sql)

When I attempt to import final.sql into temp_max DB I receive an error complaining about tables already existing. This isn't surprising as I the sql file is using a CREATE statement. Where did I go wrong? Should I have used a different option when I export/import? I was using the defaults of phpmyadmin.

Code:
SQL query:     
              --
-- Database: `temp_osc`
--
-- --------------------------------------------------------
--
-- Table structure for table `address_book`
--
 CREATE  TABLE  `address_book` (
 `address_book_id` int( 11  )  NOT  NULL  AUTO_INCREMENT ,
 `customers_id` int( 11  )  NOT  NULL default  '0',
 `entry_gender` char( 1  )  NOT  NULL default  '' COMMENT  '\0\0\0\0\0\0\0\0\0\0\0!\0\0\0',
 `entry_company` varchar( 32  )  default NULL  COMMENT  '\0\0\0\0\0\0\0\0\0\0\0!\0\0\0',
 `entry_company_tax_id` varchar( 32  )  default NULL  COMMENT  '\0\0\0\0\0\0\0\0\0\0\0!\0\0\0',
 `entry_firstname` varchar( 32  )  NOT  NULL default  '' COMMENT  '\0\0\0\0\0\0\0\0\0\0\0!\0\0\0',
 `entry_lastname` varchar( 32  )  NOT  NULL default  '' COMMENT  '\0\0\0\0\0\0\0\0\0\0\0!\0\0\0',
 `entry_street_address` varchar( 64  )  NOT  NULL default  '' COMMENT  '\0\0\0\0\0\0\0\0\0\0\0!\0\0\0',
 `entry_suburb` varchar( 32  )  default NULL  COMMENT  '\0\0\0\0\0\0\0\0\0\0\0!\0\0\0',
 `entry_postcode` varchar( 10  )  NOT  NULL default  '' COMMENT  '\0\0\0\0\0\0\0\0\0\0\0!\0\0\0',
 `entry_city` varchar( 32  )  NOT  NULL default  '' COMMENT  '\0\0\0\0\0\0\0\0\0\0\0!\0\0\0',
 `entry_state` varchar( 32  )  default NULL  COMMENT  '\0\0\0\0\0\0\0\0\0\0\0!\0\0\0',
 `entry_country_id` int( 11  )  NOT  NULL default  '0',
 `entry_zone_id` int( 11  )  NOT  NULL default  '0',
 PRIMARY  KEY (  `address_book_id`  ) ,
 KEY  `idx_address_book_customers_id` (  `customers_id`  ) 
) ENGINE  =  MYISAM  DEFAULT CHARSET  = latin1 AUTO_INCREMENT  =1;

          MySQL said:  
  #1050 - Table 'address_book' already exists
Thanks for the help. I look forward to using oscmax
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

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
merge osc2 to oscmax2? chrismole osCMax v2 Installation issues 8 07-09-2006 02:20 PM
osC conversion: osC2.1 --> osCMax2 chrismole osCMax v2 Customization/Mods 0 03-01-2006 01:06 PM
need help converting a template jcomputers osCMax v2 Customization/Mods 3 01-23-2006 09:04 PM
Converting CRE Template to OscMax cabana osCMax v2 Customization/Mods 8 11-09-2005 07:08 PM
Converting Affiliate Infobox to BTS Stu osCMax v1.7 Discussion 4 11-25-2003 07:15 AM


All times are GMT -8. The time now is 11:38 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax