Link to home
Start Free TrialLog in
Avatar of kmurphychi
kmurphychi

asked on

Trouble import csv into MYSQL

I keep getting an Invalid Column count on line 1 when I try to import data into MYSQL into an existing table.  I know there are the correct number of columns.  If I escape the lines with \r the data will import, but it will add \r to the last column so that in the database the data shows up as full_html\r instead of full_html

not sure what I am doing wrong but I have attached a sample of the data  that i am trying to import.  Any help would be hugely appreciated.  Not sure if it makes a difference but I am on a mac. Been working on this for days with no luck.
Avatar of Garry Glendown
Garry Glendown
Flag of Germany image

no attachment that I can see ... !?
What are you importing with

Custom PHP Script
PHPMyAdmin
SQLYog

?
Avatar of kmurphychi
kmurphychi

ASKER

That's weird.  I thought it attached.  Here it is.  Thanks!
sampleimportdataL.csv
I'm importing through PHPMyAdmin.
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
THANK YOU!!!!!  Removing the extra , worked like a charm!
Excellent! Glad to help.