Import 450mb CSV file in PhpMyAdmin

Discussion in 'MySQL' started by ironmankho, Oct 3, 2007.

  1. mysqlfileuploader

    mysqlfileuploader Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #21
    Picking up on the end of this thread which I found very useful, I have tried to set up bigdump. I have a database and a table called employees (used for testing). i can upload a employees.csv file that has 6 fields. When I try to import it I have an error message:

    Can anyone shed any light on this?

    Thank you
     
    mysqlfileuploader, Nov 25, 2008 IP
  2. kip

    kip Notable Member

    Messages:
    1,521
    Likes Received:
    80
    Best Answers:
    0
    Trophy Points:
    205
    #22
    it's because you have a , in your name John Smith, so it's acting as there is 6 fields, when there is only 5.

    Or less your fields have a first name, and a last name.
     
    kip, Nov 25, 2008 IP
  3. siteseller

    siteseller Guest

    Messages:
    68
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #23
    What are the fields in the table? That would help us diagnose the problem.
     
    siteseller, Nov 25, 2008 IP
  4. Tanzil Ahmed

    Tanzil Ahmed Well-Known Member

    Messages:
    357
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #24
    I vote for big dump
     
    Tanzil Ahmed, Nov 27, 2008 IP
  5. Talker

    Talker Notable Member

    Messages:
    2,795
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    210
    #25
    Cant tell without knowing the database structure.
    Please post the structure here and ill tell you whats wrong.
     
    Talker, Nov 27, 2008 IP
  6. segzeey

    segzeey Active Member

    Messages:
    350
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    78
    #26
    Use ftp to transfer the file and for the error, you should be using single quote around your values and make sure the columns match in the rows and table schema.
     
    segzeey, Jan 19, 2010 IP
  7. AdConjure

    AdConjure Active Member

    Messages:
    57
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    65
    #27
    I know it's been mentioned 100 times but bigdump is a must have file for any developer. I use this for all large website migrations.
     
    AdConjure, Dec 20, 2015 IP