Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Problem Importing SQL database to new database ready for testing Zencart 1.5

    When doing the Export - configure the "Object creation options" as follows:

    Add statements:
    Add CREATE DATABASE / USE statement -tick
    Add DROP TABLE / VIEW / PROCEDURE / FUNCTION / EVENT statement - tick
    Add CREATE PROCEDURE / FUNCTION / EVENT statement -untick
    CREATE TABLE options: -tick
    IF NOT EXISTS -tick
    AUTO_INCREMENT -untick



    Cheers
    RodG
    Last edited by RodG; 22 Aug 2015 at 02:51 AM.

  2. #2
    Join Date
    Mar 2007
    Location
    Leicestershire, UK
    Posts
    14
    Plugin Contributions
    0

    Default Re: Problem Importing SQL database to new database ready for testing Zencart 1.5

    I am on PHP 5.3.3 and I have tried you Object Creation Options, but still have the same error message. The settings I am using are:

    Output - inputting file name, no compression and leaving all other settings as default
    Format - sql
    Format Specific options - Structure and Data
    Object Creation options - have tried both checking all options and also RodG suggestions but getting same error
    Data Dump- INSERT and "both of the above" checked, and then all the defaults

  3. #3
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Problem Importing SQL database to new database ready for testing Zencart 1.5

    What version of phpMyAdmin are you using (the top of the SQL dump will usually indicate the version and other information unless disabled when exporting)?

    It looks like the export snippet you supplied is not including the definition for the primary key of the table (thus the error message when trying to import).

    There was a bug in certain obsolete versions of phpMyAdmin which resulted in broken exports such as your example snippet (auto_increment in the column definition of the table, but primary key not specified inside the table definition).
    Last edited by lhungil; 22 Aug 2015 at 08:41 AM.

 

 

Similar Threads

  1. 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
  2. HELP importing sql database
    By mrtwelvevolts in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 6 Feb 2011, 06:38 PM
  3. HELP importing sql database
    By mrtwelvevolts in forum General Questions
    Replies: 1
    Last Post: 6 Feb 2011, 04:33 PM
  4. Replies: 4
    Last Post: 15 Oct 2010, 07:18 AM
  5. SQL Errors when importing to new database - #1062 - Duplicate entry '3' for key 1
    By countingsheep in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 17 Sep 2009, 09:43 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