title: MySQL LOAD DATA INFILE "not found (Errcode: 13 - Permission denied)"
body: <p>Last week this was working, and today it isn't. I have not changed the php file. All I have done in the interim is run apt-get update on my Ubuntu 15.04 server.</p>
  
  <p>The MySQL statement I have is:</p>
  
  <pre><code>LOAD DATA INFILE "/var/www/html/uploads/TitleList.csv" INTO TABLE tblLSITitleList FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY "\"" IGNORE 5 LINES;
  </code></pre>
  
  <p>This gives the following error:</p>
  
  <blockquote>
    <p>File '/var/www/html/uploads/TitleList.csv' not found (Errcode: 13 - Permission denied)</p>
  </blockquote>
  
  <p>I have tried the following solution (which was how I solved this exact problem early last week:
  <a href="https://stackoverflow.com/questions/4215231/load-data-infile-error-code-13">LOAD DATA INFILE Error Code : 13</a></p>
  
  <p>I have checked the apparmor and the uploads folder is still there.</p>
  
  <p>I have also tried chmodding various permissions, including 777, but nothing helps.</p>
  
  <p>Any clever suggestions?</p>