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

前端 未结 21 1200
攒了一身酷
攒了一身酷 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:32

    On Ubuntu 14 and Mysql 5.5.53 this setting seems to be enabled by default. To disable it you need to add secure-file-priv = "" to your my.cnf file under the mysqld config group. eg:-

    [mysqld]
    secure-file-priv = ""
    

提交回复
热议问题