ERROR 1148: The used command is not allowed with this MySQL version

后端 未结 12 1273
感动是毒
感动是毒 2020-11-27 03:46

I am trying to load data into mysql database using

LOAD DATA LOCAL
INFILE A.txt
INTO DB
LINES TERMINATED BY \'|\';

the topic of this questi

12条回答
  •  自闭症患者
    2020-11-27 04:31

    I find the answer here.

    It's because the server variable local_infile is set to FALSE|0. Refer from the document.

    You can verify by executing:

    SHOW VARIABLES LIKE 'local_infile';
    

    If you have SUPER privilege you can enable it (without restarting server with a new configuration) by executing:

    SET GLOBAL local_infile = 1;
    

提交回复
热议问题