Results 1 to 11 of 11

Thread: Need help importing CVS file using PhpMyAdmin
      
   

  1. #1
    Jollytime is offline Sergeant
    Join Date
    Dec 2008
    Posts
    26

    Smile Need help importing CVS file using PhpMyAdmin

    I have created a Mysql data base and created tables with fields in PhpMyAdmin. Now I am trying to import a cvs file. I am getting the following error:

    Error in zip archive: Compressed size is not equal with the value in header information.

    Any idea what I am doing wrong?

    Seattleareagroceries.com

  2. #2
    Karen Mac's Avatar
    Karen Mac is offline General
    Join Date
    Apr 2006
    Location
    X marks the spot
    Posts
    8,353

    Default Re: Need help importing CVS file using PhpMyAdmin

    compressed implies to me you are zipping it? when it just needs to be saved as a csv? or a text file. Make sure you are selecting the right import type... microsoft excel or mysql

    Karen

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  3. #3
    Jollytime is offline Sergeant
    Join Date
    Dec 2008
    Posts
    26

    Default Re: Need help importing CVS file using PhpMyAdmin

    No the file is not zipped, its a file I created in Excel 07 and saved as a csv file. The options in PhpMyAdmin to import are csv, csv using load data or sql. I tried all three and got the same error message. Any other ideas?

  4. #4
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: Need help importing CVS file using PhpMyAdmin

    Such an error message clearly indicates the problem: your zip is corrupted. The "header information" is what your compressing software (winzip, winrar or other) has included, and the content is not the same amount of data.

    Try zipping again, possibly with another software.

    Did you try WITHOUT zipping ?
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  5. #5
    Karen Mac's Avatar
    Karen Mac is offline General
    Join Date
    Apr 2006
    Location
    X marks the spot
    Posts
    8,353

    Default Re: Need help importing CVS file using PhpMyAdmin

    Dont forget to skip line 1 as thats the headers...you arent importing those.. just matching.

    Karen

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  6. #6
    Jollytime is offline Sergeant
    Join Date
    Dec 2008
    Posts
    26

    Default Re: Need help importing CVS file using PhpMyAdmin

    I have abandoned the file I was trying to import that created the zip problem. I still cannot understand why the zip issue would come up since it was not a zipped file.

    Anyway, I have tried importing a different file. This time the error message is:

    Invalid column (Product) specified!

    Product is the name of my first field/column.

    I have checked both my csv file and the data base and they match excactly as far as number of fields and columns, size, spelling etc.

    Karen, What do you mean by skipping the first line?

  7. #7
    Karen Mac's Avatar
    Karen Mac is offline General
    Join Date
    Apr 2006
    Location
    X marks the spot
    Posts
    8,353

    Default Re: Need help importing CVS file using PhpMyAdmin

    The first line is your headers, usually when you import it asks you if you want to skip the first line.. or begin at line 2.

    Just out of curiosity.. what are you uploading too? If its soho.. just do it from soho.

    Karen

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  8. #8
    Jollytime is offline Sergeant
    Join Date
    Dec 2008
    Posts
    26

    Default Re: Need help importing CVS file using PhpMyAdmin

    I am trying to import to PhpMyAdmin.

  9. #9
    Karen Mac's Avatar
    Karen Mac is offline General
    Join Date
    Apr 2006
    Location
    X marks the spot
    Posts
    8,353

    Default Re: Need help importing CVS file using PhpMyAdmin

    I understand that... but what application are you using or trying to populate. Is it a soho store.. oscommerce, zen cart, or other database system..

    Most generally its advisable to do the importing thru the application if possible.. makes life easier.

    Karen

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



  10. #10
    Jollytime is offline Sergeant
    Join Date
    Dec 2008
    Posts
    26

    Default Re: Need help importing CVS file using PhpMyAdmin

    I am trying to import to a table you can view it at seattleareagroceries.com.

  11. #11
    Jollytime is offline Sergeant
    Join Date
    Dec 2008
    Posts
    26

    Default Re: Need help importing CVS file using PhpMyAdmin

    I solved my problem. The following was a very helpful tutorial for me.

    www.reg.ca/faq/phpmyadmintutorial.html

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