osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Database import from oscommerce to oscmax --- Error

This is a discussion on Database import from oscommerce to oscmax --- Error within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; After Runing the script that i got from mysqldiff , i have this new error i think i can never ...


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
  #11  
Old 02-26-2008, 03:12 PM
New Member
 
Join Date: Feb 2008
Posts: 20
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 0
chowhan is on a distinguished road
Default Re: Database import from oscommerce to oscmax --- Error

After Runing the script that i got from mysqldiff , i have this new error i think i can never get this working already 2 dayds. please some show me a easy way to fix this.

Error
SQL query:
©2001 -2004, Lippe - Net Online - Service

MySQL said:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '© 2001-2004, Lippe-Net Online-Service' at line 1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #12  
Old 02-26-2008, 03:15 PM
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: Database import from oscommerce to oscmax --- Error

SQL doesn't like apostrophe(') and maybe some other things... I find 99% of my sql syntax errors is an apostrophe that needs to be preceeded by a \


For example Who's needs to be written as who\'s for it to not cause an SQL error.

It may be another character causing the problem though
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13  
Old 02-26-2008, 03:20 PM
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: Database import from oscommerce to oscmax --- Error

also you haven't removed the default values from your auto_increment entries... that was something i had to do in mine. Don't just sue find/replace though go through and do it manually
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14  
Old 02-26-2008, 03:34 PM
New Member
 
Join Date: Feb 2008
Posts: 20
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 0
chowhan is on a distinguished road
Default Re: Database import from oscommerce to oscmax --- Error

i got it solved but here is a another one , oohhh i dont know may more are there to come still


please see if you can do something


Error
SQL query:
#
# DDL START
#
ALTER TABLE address_book ADD entry_company_tax_id varchar( 32 ) NULL DEFAULT NULL COMMENT '' COLLATE latin1_german1_ci AFTER entry_company

MySQL said:
#1060 - Duplicate column name 'entry_company_tax_id'
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15  
Old 02-26-2008, 03:46 PM
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: Database import from oscommerce to oscmax --- Error

Quote:
Originally Posted by chowhan View Post
i got it solved
post what you did so people can search and troubleshoot in the future without asking questions that have been answered.



Quote:
Originally Posted by chowhan View Post
but here is a another one , oohhh i dont know may more are there to come still

Probably lots but if you persevere you'll get through it and end up learning so don't give up.

as for your last error i'm afraid I've hit my limits so you need to hope Michael_s or someone else who knows more sql can help you out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16  
Old 02-26-2008, 03:51 PM
New Member
 
Join Date: Feb 2008
Posts: 20
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 0
chowhan is on a distinguished road
Default Re: Database import from oscommerce to oscmax --- Error

Quote:
Originally Posted by chowhan View Post
After Runing the script that i got from mysqldiff , i have this new error i think i can never get this working already 2 dayds. please some show me a easy way to fix this.

Error
SQL query:
©2001 -2004, Lippe - Net Online - Service

MySQL said:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '© 2001-2004, Lippe-Net Online-Service' at line 1
ALTER TABLE `zones` ADD `zone_status` tinyint(1) default '1' not null;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17  
Old 02-26-2008, 03:53 PM
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: Database import from oscommerce to oscmax --- Error

I mean I understand that your query is telling the table to add a column that already exists... I just don't know how t fix it. if they are already identical you could just skip that query(by deleting it) but I don't know if it's identical.

DO NOT DO THIS UNLESS YOU ARE SURE IT IS OK TO DO AND ALWAYS BACK UP BEFORE RUNNING ANY QUERIES THAT CHANGE THINGS
What "may" work is to delete entry_company_tax_id column from the address_book table and then run that query BUT that will delete any historical data in that column and could break things so I really wouldn't recommend it until you get the OK from someoen who knows what they're doing. i repeat DO NOT DO THIS UNLESS YOU ARE SURE IT IS OK TO DO AND ALWAYS BACK UP BEFORE RUNNING ANY QUERIES THAT CHANGE THINGS

Just to double check you are running this query on your old database right?? sqldiff can be a bit funny to get your head around...

source database is your old database... target database is your new database and then you run the query on the old database. after that you can export the things you need from your old database and import into your new database.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18  
Old 02-26-2008, 04:00 PM
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: Database import from oscommerce to oscmax --- Error

Quote:
Originally Posted by chowhan View Post
After Runing the script that i got from mysqldiff , i have this new error i think i can never get this working already 2 dayds. please some show me a easy way to fix this.
Just out of curiosity how did you manage to try your query for 2 days, then come back in time to make this post less than 1 hour after you got told mysqldiff exists today and posted your query for the first time?

I really could use time travel technology... would do wonders for my income.

if you're gonna tell lies to get help at least make them believable.

Last edited by tcshadow; 02-26-2008 at 04:03 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19  
Old 02-27-2008, 12:47 AM
New Member
 
Join Date: Feb 2008
Posts: 20
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 0
chowhan is on a distinguished road
Default Re: Database import from oscommerce to oscmax --- Error

Hi everyone i am still stuck here with the database please someone take out some time to help me out

here is the error what i get when i run the code which i get from mysqldiff


Error
SQL query:
#
# DDL START
#
ALTER TABLE address_book ADD entry_company_tax_id varchar( 32 ) NULL DEFAULT NULL COMMENT '' COLLATE latin1_german1_ci AFTER entry_company

MySQL said:
#1060 - Duplicate column name 'entry_company_tax_id'


What i did was , use mysqldiff and source database is my old database... target database is my new database and then you i the query on the old database.

Please Michael i think you got to help me out man.

Last edited by chowhan; 02-27-2008 at 01:57 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20  
Old 02-27-2008, 01:12 PM
New Member
 
Join Date: Feb 2008
Posts: 20
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 0
chowhan is on a distinguished road
Default Re: Database import from oscommerce to oscmax --- Error

Hi everyone i am still stuck here with the database please someone take out some time to help me out

here is the error what i get when i run the code which i get from mysqldiff


Error
SQL query:
#
# DDL START
#
ALTER TABLE address_book ADD entry_company_tax_id varchar( 32 ) NULL DEFAULT NULL COMMENT '' COLLATE latin1_german1_ci AFTER entry_company

MySQL said:
#1060 - Duplicate column name 'entry_company_tax_id'


What i did was , use mysqldiff and source database is my old database... target database is my new database and then you i the query on the old database.

Please Michael i think you got to help me out man.
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
how to import my old database plus766 osCommerce 2.2 Installation Help 2 01-26-2007 11:24 AM
how do i convert oscommerce database backups to oscmax? chuan osCMax v2 Installation issues 1 10-07-2006 07:43 PM
OSCMax v2 - Stuck on New Installation Database Import Geno11x11 osCMax v2 Installation issues 2 12-04-2005 10:27 AM
Error Import database dc25 osCommerce 2.2 Installation Help 0 12-08-2003 12:08 AM
Database import sverker osCommerce 2.2 Installation Help 4 11-24-2003 01:26 PM


All times are GMT -8. The time now is 12:23 PM.


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