Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2007
    Location
    Atlanta, GA
    Posts
    79
    Plugin Contributions
    0

    Default Issues importing new database

    I recently decided to switch hosts and am having issues importing my database file to the new host. I've been on the phone with tech support 3 times and they are stumped, too ... so I thought I'd give this forum a shot.

    I'm using ZenCart 1.3.7

    My old host (ipowerweb) uses MySQL 4 and phpMyAdmin 4. My new host (bluehost) uses MySQL 5 and a newer version of phpMyAdmin. When I try to import the sql files to the new database using my host's new version of phpMyAdmin, it will think for a minute and then I get this message, 'Import has been successfully finished, 0 queries executed.' The sql files I exported are not empty because I can open them up with my text editor and see the info. I am exporting the databases using these settings:

    • Structure and data
    • Add 'drop' table
    • Complete inserts
    • Extended inserts
    • Enclose table and field names with backquotes
    • Save as file ....


    I've been scouring other forums and I found this response on bluehost's forum to a guy who got the same message I did (BTW this is posted by the Systems Administrator at Bluehost and I understand that this is referring to CubeCart and not ZenCart) .....


    "You have an error in your SQL syntax.

    The offending syntax is:

    CREATE TABLE CubeCart_Modules (
    moduleId int(11) NOT NULL auto_increment,
    module varchar(10) NOT NULL default '',
    folder varchar(30) NOT NULL default '',
    status smallint(1) NOT NULL default '0',
    default int(1) NOT NULL default '0',
    KEY moduleId (moduleId)
    ) TYPE=MyISAM;

    The line

    default int(1) NOT NULL default '0',

    is NOT valid syntax, since the word "default" is a keyword in mysql, and cannot be used as a column name.

    This worked fine in mysql4, but mysql5 has tightened up the rules a bit, and since mysql4 is no longer supported by mysql, nor will any future security fixes happen, Bluehost has upgraded everything to mysql5.

    I am afraid that you will have to get a newer version of your cart software, figure out what they changed that table definition to, and alter it in your sql before mysql5 will allow it to create the table."


    Could this also apply to ZenCart?!?

    P.S. I did a fresh install of ZenCart on the new server and the database that it created for me works fine. It's just transferring over my old database that I'm having problems with.

  2. #2
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Issues importing new database

    Try exporting with the following:

    Structure
    Add AUTO_INCREMENT value
    Enclose table and field names with backquotes

    The error msg. you stated would not apply to you as do not get any error msg.

  3. #3
    Join Date
    Oct 2007
    Location
    Atlanta, GA
    Posts
    79
    Plugin Contributions
    0

    Default Re: Issues importing new database

    Quote Originally Posted by Website Rob View Post
    Try exporting with the following:

    Structure
    Add AUTO_INCREMENT value
    Enclose table and field names with backquotes

    The error msg. you stated would not apply to you as do not get any error msg.
    Thanks for the speedy reply, Rob! Unfortunately 'Add AUTO_INCREMENT value' is not one of the options I have for exporting. I misspoke earlier ... my old host uses phpMyAdmin 2.4.0 while the new one uses 2.11.4 (if it matters).

    Sorry ... I should've included more of the bluehost Admin's post. The guy he was responding to gets the same message I do which is 'Import has been successfully finished, 0 queries executed.' Like me, he was not receiving an outright error message when he imported. The admin guy created a test database in his account or something like that and found where the problem is by doing whatever it is you smart people do. LOL. [This is so over my head it's not even funny. ] His entire response can be found here: http://bluehostforums.com/showpost.p...6&postcount=14

    Thanks again for your reply!!!

  4. #4
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Issues importing new database

    For the most part, the settings used when exporting and regardless of what version of phpMyAdmin is used, do not really matter. As you say, it is just a text file and can be opened / editted with any Text Editor.

    I guess what I don't understand is this msg.
    "Import has been successfully finished, 0 queries executed."

    That means a blank db was imported which means your current one is probably corrupted. If you were getting an error msg., it would tell exactly what the problem is and could be easily fixed.

    I'm surprized you are not getting more help from your Hoster as they could fix this for you pretty quick. You definitely need someone to work with the file for you, to sort out the problem and get things going for you.

  5. #5
    Join Date
    Oct 2007
    Location
    Atlanta, GA
    Posts
    79
    Plugin Contributions
    0

    Default Re: Issues importing new database

    Quote Originally Posted by Website Rob View Post
    I'm surprized you are not getting more help from your Hoster as they could fix this for you pretty quick. You definitely need someone to work with the file for you, to sort out the problem and get things going for you.
    I agree 100%!!! I will call them again today and maybe they'll bump me up to level 2 support. Thanks!

  6. #6
    Join Date
    Mar 2005
    Location
    Waxahachie, Texas
    Posts
    174
    Plugin Contributions
    0

    Default Re: Issues importing new database

    I just went through the same problem going from version 4 to version 4. (That's not a typo.) There was an obscure dropdown called "SQL Compatibility Mode" and I had to select "40" for it to work.
    Thanks,
    Ray

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Issues importing new database

    The tutorials/FAQ's ^^ in the top nav bar has a wealth of information for these types of normal things
    https://www.zen-cart.com/tutorials/i...hp?article=103
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. v139h Problem Importing SQL database to new database ready for testing Zencart 1.5
    By gillpotsoffun in forum Upgrading to 1.5.x
    Replies: 8
    Last Post: 24 Aug 2015, 11:24 PM
  2. Error importing old database to the new database
    By wmorris in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 3 Jan 2012, 08:27 AM
  3. Importing New Template... What Data Base Issues Will I Have?
    By jeffis in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 Mar 2011, 11:06 AM
  4. Replies: 4
    Last Post: 15 Oct 2010, 07:18 AM
  5. Importing Database into new Installation
    By MagicMan in forum Installing on a Linux/Unix Server
    Replies: 27
    Last Post: 14 Nov 2008, 12:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg