4

04,我试图将 csv 文件加载到数据库中,但它给出了错误

#1148 - The used command is not allowed with this MySQL version

我的代码加载文件

LOAD DATA LOCAL INFILE '//home//triveni//Documents//test.csv'
INTO TABLE 1981_5
FIELDS TERMINATED BY ','
ENCLOSED BY ''
LINES TERMINATED BY '\n'
(question,answer1,answer2,answer3,answer4,answer5,answer6,rightAnswer,Marks)

文件中的数据是

Whartsdf,dsfds,sdfdsf,sdfdsf,sdfds,sdf,fsdf,2,2

任何人请帮助我,我已经尝试了所有可能更改权限的方法,仅尝试过LOAD DATA INFILE 但我没有得到解决方案...

它在 Windows 操作系统中运行良好这是操作系统问题吗????

4

0 回答 0