将大型CSV文件导入phpMyAdmin

时间:2017-06-27 23:38:22

标签: cmd phpmyadmin xampp

大家好我想将一个大型CSV文件导入phpMyAdmin。我尝试使用XAMPP命令提示符:

LOAD DATA LOCAL INFILE 'the_name_of_mydb.csv'

此文件包含数据库(1048576成员)但我收到此错误:

CMD

请帮助解决这个问题..我该怎么办?

1 个答案:

答案 0 :(得分:0)

You can do this by using a query:

LOAD DATA INFILE 'YOUR_FILE_COMPLETE_PATH' INTO TABLE tbl_name
  FIELDS TERMINATED BY ',' ENCLOSED BY '"'
  LINES TERMINATED BY '\r\n'