大家好我想将一个大型CSV文件导入phpMyAdmin。我尝试使用XAMPP命令提示符:
LOAD DATA LOCAL INFILE 'the_name_of_mydb.csv'
此文件包含数据库(1048576成员)但我收到此错误:
请帮助解决这个问题..我该怎么办?
答案 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'