LOAD DATA LOCAL INFILE forbidden in… PHP

后端 未结 12 1131
无人共我
无人共我 2020-12-01 10:38

I am trying to use LOAD DATA INFILE to insert some records into a table. Unfortunately, it\'s not working.

Here are some details

If I use this i

12条回答
  •  情歌与酒
    2020-12-01 10:58

    I had exactly the same problem on a EC2 Ubuntu 12.04 LTS instance when accessing a MySQL on RDS: LOAD DATA LOCAL INFILE... works fine on a mysql console but not from PHP. Accidentaly i found out that it worked fine on another almost identical machine that used MariaDB (a binary compatible drop in replacement for MySQL).

    So i replaced the MySQL clients with the ones from MariaDB and it worked.

提交回复
热议问题