title: mysqldump: Got error: 1: "Can't create/write to file '*.txt' (Errcode: 13 "Permission denied")" when executing 'SELECT INTO OUTFILE'
body: <p>Linux. No SELinux (disabled).
  I try to run this command as my linuxuser (member of group mysql):</p>
  
  <p><code>mysqldump --user=root --tab "/some/folder" dbname</code></p>
  
  <p>Getting this error:</p>
  
  <p><code>mysqldump: Got error: 1: "Can't create/write to file 'sometable.txt' (Errcode: 13 "Permission denied")" when executing 'SELECT INTO OUTFILE'</code></p>
  
  <p>If I look in the folder, there is a <code>sometable.sql</code> file, but no txt file.
  As I understand, the sql file is created from the user's name who run the command (linuxuser in my case), but the txt file gets generated by mysql server (mysql user in this case). Note that mysql user is also a member of mysql group.</p>
  
  <p>What could be the problem? Tried everything :)</p>