Page 1 of 3 123 LastLast
Results 1 to 10 of 26
  1. #1
    Join Date
    Nov 2007
    Posts
    28
    Plugin Contributions
    0

    Default Unable to import MYSQL database

    Hi can you help???

    i am trying to import my database from 1 shopping cart to my new server and new shopping cart,
    i have coied all my files over to the new server and dropped all my tabls on the new MY SQL data base and when importing via, Gzip or zip file i get the below error?

    Can you advise what i am doing wrong please as i am sooooooo confused

    Error
    SQL query:

    -- phpMyAdmin SQL Dump
    -- version 2.11.0
    -- http://www.phpmyadmin.net
    --
    -- Host: localhost
    -- Generation Time: Nov 14, 2007 at 06:26 PM
    -- Server version: 4.1.22
    -- PHP Version: 5.2.3
    --
    -- Database: `fr201jus_zc1`
    --
    CREATE DATABASE `fr201jus_zc1` DEFAULT CHARACTER SET latin1 COLLATE latin1_general_ci
    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 'DEFAULT CHARACTER SET latin1 COLLATE latin1_general_ci' at line


  2. #2
    Join Date
    Jan 2007
    Location
    Carlsbad, CA
    Posts
    158
    Plugin Contributions
    0

    Default Re: Unable to import MYSQL data he base

    what are you using to import the DB? what did you use to export and what were those settings?

    Also, how big is the database file?
    -Buck

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

    Default Re: Unable to import MYSQL data he base

    And what version of MySQL on the new server?
    .

    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.

  4. #4
    Join Date
    Nov 2007
    Posts
    28
    Plugin Contributions
    0

    Default Re: Unable to import MYSQL data he base

    Hi, I am using phpMyAdmin version 4.0

  5. #5
    Join Date
    Nov 2007
    Posts
    28
    Plugin Contributions
    0

    Default Re: Unable to import MYSQL data he base

    the file is 238 kb and i used phpMyAdmin version 4.0 to export to a gzip, zip and a sql file format, i have tried all formats to upload and none work

  6. #6
    Join Date
    Jan 2007
    Location
    Carlsbad, CA
    Posts
    158
    Plugin Contributions
    0

    Default Re: Unable to import MYSQL data he base

    Why don't you just export that without zipping?
    -Buck

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

    Default Re: Unable to import MYSQL data he base

    Your server is probably set up to disallow you from creating databases via a .sql import.

    So, either edit your .sql file before you attempt to upload it, and put a # before the CREATE DATABASE `fr201jus_zc1` .... line,
    or, when you do your export, select your database from the pulldown on the left, so that all your tables are displayed, and *then* click the "Export" tab. This should cause it to skip building the CREATE DATABASE statement.

    FAQ: https://www.zen-cart.com/tutorials/i...hp?article=103
    .

    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
    Nov 2007
    Posts
    28
    Plugin Contributions
    0

    Default Re: Unable to import MYSQL data base

    Hi - sorry. i have tried the text only and this has not work either. i have now tried the scond option as i am still very new to all this and do not understand how to edit a sql. database.

    The results i recived when uploading the new sql was

    SQL query:

    -- phpMyAdmin SQL Dump
    -- version 2.11.0
    -- http://www.phpmyadmin.net
    --
    -- Host: localhost
    -- Generation Time: Nov 17, 2007 at 09:11 AM
    -- Server version: 4.1.22
    -- PHP Version: 5.2.3
    SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"
    MySQL said:

    #1193 - Unknown system variable 'SQL_MODE'

    sorry i'm sure this task is supposed to be easy

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

    Default Re: Unable to import MYSQL data he base

    It seems like you're trying to load a MySQL 4 or 5 database onto a v3.23 server.

    You never did indicate what version of MySQL is on your server.
    .

    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
    Nov 2007
    Posts
    28
    Plugin Contributions
    0

    Default Re: Unable to import MYSQL data he base

    Hi, the database that i am using to upload on to is version 4 but i have the option to create a version 5. the database that i am tansferinf from is a version 4

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Unable to correctly export/import zen cart MySQL data file
    By gamenano in forum General Questions
    Replies: 0
    Last Post: 14 Oct 2010, 04:02 AM
  2. Import Datafeed to MySQL database?
    By kirei in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 27 Nov 2009, 10:09 PM
  3. MySQL database import error
    By xikan in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 24 Aug 2009, 02:39 AM
  4. Unable to import products
    By kathsta in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 3 Jul 2009, 11:54 PM
  5. Unable to import database
    By cherif in forum General Questions
    Replies: 2
    Last Post: 7 Jul 2007, 05:13 PM

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