+ Reply to Thread
Results 1 to 3 of 3

Thread: Data Base Management with myPHPadmin
      
   

  1. #1
    CaseyC is offline Private
    Join Date
    Aug 2006
    Posts
    1

    Default Data Base Management with myPHPadmin

    I am attempting to generate an Excel file (CSV) of products for my online store that I can then upload to my existing SQL database. As a starter to try to get a feel for SQL, I exported my existing data base with the "EXPORT" tab in phpMyadmin to an Excel (CSV) file on my desktop. Then, without making any changes I used the "IMPORT" tab to restore the database. The import process generated the following error:

    "ERROR"
    "Invalid field count in CSV input on Line 1"

    Obviously I am missing something. Is there a control record required as the first record in the Import????If so, what is the format?

    Thank you,
    Klaus Cook
    Houston, Texas

  2. #2
    wonderlunder is offline Corporal
    Join Date
    Sep 2006
    Posts
    11

    Default Re: Data Base Management with myPHPadmin

    HI Klaus,

    When I use to get that error from importing excel/csv files, it was because I didn't name each column, so instead of starting out with "firstname" at the top of each column to allow it to recognize as a first name to then import, I just had the first names. Not sure if it is the same with php, but I would get a very similar error when importing leads into
    certain programs.

    Scott

  3. #3
    mvtkan is offline Private
    Join Date
    Sep 2007
    Posts
    1

    Default Re: Data Base Management with myPHPadmin

    Hi all i am newbie

    i also got the same error but after doing some work i got solution. my .csv file look like excel file and i imported it successfully in MYSQL TABLE through phpmyadmin.

    make sure you have done following step correctly

    empty your table first if it has garbage

    1. your cvs file's column name must match your table column name
    2. browse your required .csv file
    3. select CSV using LOAD DATA options
    4. Check box 'ON' for Replace table data with file
    5. in Fields terminated by box type ,
    6. in Fields enclosed by box "
    7. in Fields escaped by box \
    8. in Lines terminated by box auto
    9. in Column names box type column name seperated by , like column1,column2,column3
    10 check box ON for Use LOCAL keyword.

    i hope it will work for you

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49