D
D
del9937882016-09-30 12:54:24
MySQL
del993788, 2016-09-30 12:54:24

How to output from excel to phpmyadmin database?

Hello. It was necessary to create many categories for the engine. All categories were stored in the database and looked like this: 04d2da8c440f486da18c20ba799b803e.PNG
Then I created a table in excel with the same number of columns and filled it. I save it in CVS, go to phpmyadmin, click "import", select a file, click "forward", and I get an error in response: "Mismatch in the number of columns in the CSV data on line 1." . Well, most likely it should be, since I did not change the format parameters. Tell me what needs to be changed so that phpmyadmin accepts the file?
356eae23b84446689054e667f38249e2.PNG

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Ivanov, 2017-06-08
@romalu

I also just had this problem. At random, I found that the problem is still in the encoding. For example, open a csv file in notepad++ and look at the encoding in the "Encodings" menu. Rather, you have it in UTF-8 (with BOM), but it should be in UTF-8 without BOM. As far as I remember, BOM adds some non-printable character to the beginning of the file, which is why the error occurs.

I
Immortal_pony, 2016-09-30
@Immortal_pony

Set the field separator to ";".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question