LOAD DATA INFILE Error Code : 13

后端 未结 19 2503
有刺的猬
有刺的猬 2020-11-28 02:37

In my remote MySQL, when I try to execute this query, I am getting the MySQL Error Code : 13.

Query -

LOAD DATA INFILE 
\'/httpdocs/.../.../testFile.         


        
19条回答
  •  暖寄归人
    2020-11-28 03:22

    1. GRANT ALL PRIVILEGES ON db_name.* TO 'db_user'@'localhost';
    2. GRANT FILE on .* to 'db_user'@'localhost' IDENTIFIED BY 'password';
    3. FLUSH PRIVILEGES;
    4. SET GLOBAL local_infile = 1;
    5. Variable in the config of the MYSQL "secure-file-priv" must be empty line!!!

提交回复
热议问题