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

后端 未结 12 1314
感动是毒
感动是毒 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条回答
  •  猫巷女王i
    2020-11-27 04:39

    Refer to MySQL 8.0 Reference Manual -- 6.1.6 Security Issues with LOAD DATA LOCAL

    On the server side, run

    mysql.server start --local-infile
    

    On the client side, run

    mysql --local-infile database_name -u username -p
    

提交回复
热议问题