Error 1148 MySQL The used command is not allowed with this MySQL version

前端 未结 5 663
别那么骄傲
别那么骄傲 2020-11-30 10:38

I am using MySQL LOAD DATA LOCAL INFILE command and I get this error:

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1148 The          


        
5条回答
  •  不知归路
    2020-11-30 10:46

    In addition to using local-infile with the MySQL server (you can put this in the /etc/my.cnf file too), you also need to enable PDO to allow it:

     true)
    );
    

    Otherwise it won't work, regardless of the value of local-infile on the MySQL server.

提交回复
热议问题