Invalid field count in csv input on line 1
When importing CSV data into my MySQL database using PHPMyAdmin, I found following error: Invalid field count in csv input on line 1.
It’s odd since I’ve manually count field numbers and compared with column on my CSV files, they’re exactly match.
Then I found something strange. PHPMyAdmin is automatically use semicolon ( ; ) as field delimiter instead of comma ( , ). Quick fix for this problem is to change the delimiter symbol manually.
In the picture above, I replaced semicolon (rounded with blue circle) with comma and everything is alright.





it’s not a bug, it follow old excel csv pattern
Thanks! This really helped alot. Spent a good while trying to find problem, and its something as small as this.
Thanks again
ndal….kowe kie mbahas opo tho?
@mh
Thanks for your acknowledgement
@jport
nice to hear that
WOW thanks for the info, i uploaded a csv files successfully because of your advise. Great job!
sopo yo.admine..salam kenal..
sopo = siapa
admine = administratornya
ember jeng
you’ve got no idea how much you just helped me out right here!
Thanks a million!
hehehe, biasanya itu dari mysql lama ke mysql baru.
Nice post, it is working fine.
Thank you, thank you, thank you!
I’d been pulling out my hair for two hours until I stumbled upon your site.
Comma vs. semicolon… phew – I didn’t spot that. Amazing what grief one pixel’s difference can cause.
phpMyAdmin can go stuff its semicolon right up its last two syllables of the aforementioned punctuation mark.
Terima kasih banyak
Thank you. I have been looking all day on the web trying to get an answer. My upload worked fine.
Cheers,
Alan
thank you so much ,helped me a lot . .
Thanks, This had been driving me mad for some time!