osCmax v2.5 User Manual
Results 1 to 3 of 3

customers sql

This is a discussion on customers sql within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; Hi - I think I am posting this in the wrong place, but couldn't seem to find a better one. ...

      
  1. #1
    Member
    Join Date
    Apr 2010
    Posts
    69
    Rep Power
    3


    Default customers sql

    Hi - I think I am posting this in the wrong place, but couldn't seem to find a better one.

    I need to edit and make changes to the customers.sql, so before I did anything I exported it and imported it without making any changes, just to be sure it would import. Well, without making any changes at all, I got the following error (I replaced personal info with XXXX):

    SQL query:
    -- -- Dumping data for table `customers` -- INSERT INTO `customers` (`customers_id`, `purchased_without_account`, `customers_gender`, `customers_firstname`, `customers_lastname`, `customers_dob`, `customers_email_address`, `customers_default_address_id`, `customers_telephone`, `customers_fax`, `customers_password`, `customers_newsletter`, `guest_account`, `customers_login`, `customers_group_name`, `customers_group_id`, `customers_group_ra`, `customers_payment_allowed`, `customers_shipment_allowed`) VALUES (2, 0, '', 'XXXX', 'XXXX', '0000-00-00 00:00:00', 'XXX@XXX.com', 2, '702.275.7531', '', 'e42c94ee12a985cd3e9842a6bc61b9d7:d9', '0', 0, NULL, 'Retail', 0, '0', '', ''), (97, 0, '', 'XXXX', 'XXXX', '0000-00-00 00:00:00', 'XXXX@XXXXX.com', 113, '209-495-0687', '', '063e4d336e3104a341b4c07a50a7fc09:f6', '0', 0, NULL, 'Retail', 0, '0', '', ''), (27, 0, '', 'XXXX', 'XXXX', '0000-00-00 00:00:00', 'XXXX@XXXX.com', 31, '571-294-6953', '', 'e073aa33a[...]
    MySQL said:
    #1062 - Duplicate entry '2' for key 1

    I'm not sure how I can get an error without making any changes to it.
    Thanks for any help.

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    1 out of 1 members found this post helpful.

    Default Re: customers sql

    In order to import, you first have to empty the customers table of all data. You see, you are trying to insert customers_id #2 into a table that already has a customers_id #2.

    customers_id is the primary key on the table, so you can't import more than one customer record with the customer_id of 2. They all must be unique.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Member
    Join Date
    Apr 2010
    Posts
    69
    Rep Power
    3


    Default Re: customers sql

    Thanks Michael - makes sense now!

Similar Threads

  1. uploading customers
    By bluezdaze in forum osCMax v2 Features Discussion
    Replies: 4
    Last Post: 07-08-2010, 04:07 AM
  2. Account Customers Only
    By mujik in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 02-13-2010, 01:42 AM
  3. Customers seeing other customers carts/details
    By michelle in forum osCommerce 2.2 Discussion
    Replies: 2
    Last Post: 01-29-2010, 06:29 AM
  4. no customers
    By JKZ33@AOL.COM in forum osCommerce 2.2 Discussion
    Replies: 4
    Last Post: 02-27-2008, 11:38 AM
  5. All Customers Report
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 03-11-2007, 01:22 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
  •