title: Can't create/write to file '/opt/new/abc.csv' (Errcode: 13)
body: <p>I am getting errorcode while trying to dump CSV from JAVA using mysql query SELECT INTO OUTFILE.
  I already appended the lines:</p>
  
  <pre><code>/opt/new/ r,
    /opt/new/** rw,
  </code></pre>
  
  <p>to /etc/apparmor.d/usr.sbin.mysqld and restarted it but still no effect.
  I also tried changing the permissions of my folder to 777 but still same error is coming.
  Could anyone suggest.Platform I am using is UBUNTU</p>