I’m trying to get a “.csv” file onto an SQL database with phpMyAdmin. However, whenever I import it, I get the error: Invalid column count in CSV input on line 1. I’ve spent all day playing around with different options to try and get it to work but with no avail. There are exactly 47 columns in my .csv file. I have created 47 columns in my SQL table. The names however aren’t exactly the same as the ones in the file. Whenever I import, it keeps giving me that error. Any help would be greatly appreciated! ~Carpetfizz One thing I thought might be causing the problem was that the first column isn’t named anything in my excel document. Could this be causing an issue?
EDIT 12:30AM: phpMyAdmin is already the latest version available, via (apt-get install phpmyadmin) (phpmyadmin is already latest version)
Here is the .csv file, if that helps.
If your DB table already exists and you do NOT want to include all the table’s columns in your CSV file, then when you run PHP Admin Import, you’ll need fill in the Column Names field in the Format-Specific Options for CSV – Shown here at the bottom of the following screenshot.
In summary: