MySQL: Enable LOAD DATA LOCAL INFILE

后端 未结 18 1368
北海茫月
北海茫月 2020-11-22 09:30

I\'m running Mysql 5.5 on Ubuntu 12 LTS. How should I enable LOAD DATA LOCAL INFILE in my.cnf?

I\'ve tried adding local-infile in my config at various places but I\'

18条回答
  •  一个人的身影
    2020-11-22 09:39

    I am using xampp v3.2.4 and mysql server 8.0.20.

    I added local-infile=1 to [mysql] and [mysqld] in the file "my.ini". The file is located at "C:\xampp\mysql\bin\my.ini".

    Then I inserted the data from csv file using the following code LOAD DATA INFILE .... It is important to move LOCAL. Otherwise it won't work.

    Thanks for all suggestions above. A combination finally worked out for me.

提交回复
热议问题