title: LOAD DATA INFILE Error Code : 13
body: <p>In my remote MySQL, when I try to execute this query,
  I am getting the MySQL Error Code : 13.</p>
  
  <p>Query -</p>
  
  <pre><code>LOAD DATA INFILE 
  '/httpdocs/.../.../testFile.csv'
  INTO TABLE table_temp
  FIELDS TERMINATED BY ','
  LINES TERMINATED BY '\\r \\n'
  (sku, qty);
  </code></pre>
  
  <p>Error Code : <code>13 Can't get stat of '/httpdocs/.../.../testFile.csv' (Errcode: 2)</code></p>
  
  <p>a. The database userlogin has all the grant priviliges.</p>
  
  <pre><code>CREATE USER 'userName'@'%' IDENTIFIED BY '************';
  
  GRANT ALL PRIVILEGES ON * . * TO 'userName'@'%' IDENTIFIED BY '************' WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
  
  GRANT ALL PRIVILEGES ON `userName\_%` . * TO 'userName'@'%';
  </code></pre>
  
  <p>b. I have also set the file and folder permission to chmod 777 (rwxrwxrwx)
     using FTP Tool</p>