How should I tackle --secure-file-priv in MySQL?

前端 未结 21 1195
攒了一身酷
攒了一身酷 2020-11-22 06:04

I am learning MySQL and tried using a LOAD DATA clause. When I used it as below:

LOAD DATA INFILE \"text.txt\" INTO table mytable;
21条回答
  •  鱼传尺愫
    2020-11-22 06:20

    If the file is local to your machine use the LOCAL in your command

    LOAD DATA LOCAL INFILE "text.txt" INTO table mytable;
    

提交回复
热议问题