New text with notepad, save as CSV (utf-8 encoding) : A, B, C D, E, F Then in the workbench 6.3 CE with built-in import tool to import, obtain the following results: Restoring the C: \ ProgramData/MySQL/MySQL Server 5.7 \ Uploads \ 3. CSV Running: mysql. Exe - defaults - file="c: \ users \ admin \ appdata \ local \ temp \ tmpw34unc CNF" - protocol=TCP - host=localhost - user=root - port=3306 - default - character - set=utf8 - comments & lt; "C: \ \ ProgramData \ \ MySQL \ \ MySQL Server 5.7 \ \ Uploads \ \ 3. CSV" ERROR 1064 (42000) at line 1: You have an ERROR in your SQL syntax; Check the manual that corresponds to your MySQL server version for the right syntax to use near 1, 2, 3 'A, B, C D, E, F 'at line 1
Operation failed with exitcode 1 17:40:41 Import of C: \ ProgramData/MySQL/MySQL Server 5.7 \ Uploads \ 3. CSV has finished with 1 errors
Think impassability, please tall person to give directions, I now can only build a first field table, and then delete the title of the CSV part, and then use the load data infile method to import
CodePudding user response:
Can't directly import should use the load data import command
CodePudding user response:
See the information, it seems that you are using is not imported, is performed