Results 1 to 10 of 10
  1. #1
    Join Date
    Jan 2008
    Location
    Southern California Coast
    Posts
    183
    Plugin Contributions
    0

    Default SQL Import Error - Somewhat Urgent

    Hey Zenners,

    I am trying to move my site from one Host to another. I followed the tutorials perfectly, I think, but I got an error.

    Rundown:
    I installed Fresh Zen Cart 1.3.8a.
    Backed up configure files.
    Made Back-ups for live store and database.
    Uploaded live back-up to new install.
    Went on myPHPadmin for new Database.
    Dropped all Tables.
    Went to import SQL file and got a error.


    SQL query:
    --
    -- Table structure for table `zen_address_book`
    --
    DROP TABLE IF EXISTS `zen_address_book`

    MySQL said:
    #1046 - No Database Selected
    I'm horrible with SQL! Please help! Time is money, owner won't be too happy, already asked me why it's down this morning, lol.

    - Jason

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: SQL Import Error - Somewhat Urgent

    Looks like you do not have a DB selected and active in phpmyadmin
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jan 2008
    Location
    Southern California Coast
    Posts
    183
    Plugin Contributions
    0

    Default Re: SQL Import Error - Somewhat Urgent

    Awkward, I did though, Lol.

  4. #4
    Join Date
    Jan 2008
    Location
    Southern California Coast
    Posts
    183
    Plugin Contributions
    0

    Default Re: SQL Import Error - Somewhat Urgent

    SQL query:
    SET @saved_cs_client = @ @character_set_client

    MySQL said:
    #1193 - Unknown system variable 'character_set_client'
    New error. So its Character set problem. How can I resolve this?

    Thanks in advance!
    - Jason

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: SQL Import Error - Somewhat Urgent

    That error indicates that you've exported from a different version of MySQL than you're trying to import into, and the layout of the export data isn't fully compatible.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Jan 2008
    Location
    Southern California Coast
    Posts
    183
    Plugin Contributions
    0

    Default Re: SQL Import Error - Somewhat Urgent

    Is there a method where I can make it compatible or maybe change an export setting?

    - Jason

  7. #7
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: SQL Import Error - Somewhat Urgent

    Quote Originally Posted by DieuxSoldat_04 View Post
    Is there a method where I can make it compatible or maybe change an export setting?
    I suppose that depends on the tools you're using to do your export. Do they give you some sort of compatibility options that match the version of MySQL you're trying to import into?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Jan 2008
    Location
    Southern California Coast
    Posts
    183
    Plugin Contributions
    0

    Default Re: SQL Import Error - Somewhat Urgent

    The Host I am exporting with has a Backup Wizard and phpMyAdmin. I suppose phpMyAdmin would allow me to specify the settings, but I don't even know what I am suppose to change.

    On one of the hosts I'm not even certain what version of MySQL it is. Their phpMyAdmin is different from most servers and when I create the Database it just lets me select 4.0 or 5.0.

    The Old Database that I am exporting from uses MySQL client version: 4.1.22 and I did a phpinfocheck on the New Database I am importing too and it says Client API version 5.0.32. Not sure if that's the MySQL version.

    As long as both has the phpMyAdmin tool, could someone walk me through the steps to make sure they are compatible?

    Also, I was curious if it could be a collation problem?

    Thanks!
    - Jason

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: SQL Import Error - Somewhat Urgent

    It might be prudent to talk to the hosting company and confirm what version of MySQL is being used, especially if you plan to host your site there.

    FAQ on using phpMyAdmin to make backups: https://www.zen-cart.com/tutorials/i...hp?article=103 There are compatibility options available, but should be used with caution. It's not uncommon to lose all auto-increment flags when switching between major MySQL versions, thus leaving your database in a confused state and unable to add new orders/customers/etc. It's especially ill-advised to ever go backwards, ie: from 5 to 4.

    And, no, it's not a collation problem.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Jan 2008
    Location
    Southern California Coast
    Posts
    183
    Plugin Contributions
    0

    Default Re: SQL Import Error - Somewhat Urgent

    Heya guys,

    I contacted a college professor at my university. He advised the same thing but went ahead and edited for me. Turns out the Old Host said they were running 4.0 but was actually running 5.0. no idea how that could happen.

    They tried to import to a version 5 SQL DB and it worked. I have to pick better hosts...

    Thanks for your help DrByte!

    - Jason

 

 

Similar Threads

  1. Problem with SQL import
    By tragosina in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 18 Dec 2011, 03:19 PM
  2. Got error #1064 when import sql
    By sansan0831 in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 3 Jun 2011, 04:37 PM
  3. SQL File Error - URGENT HELP NEEDED PLEASE
    By Adds in forum General Questions
    Replies: 13
    Last Post: 29 Oct 2007, 08:16 AM
  4. Error with SQL database import
    By LadySyren in forum General Questions
    Replies: 3
    Last Post: 26 Dec 2006, 03:21 PM
  5. SQL Import problem
    By quantum in forum General Questions
    Replies: 6
    Last Post: 22 Jul 2006, 10:37 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR