title: Export table data into csv file using mysqldump
body: <p>I want to export a table data into a csv file using mysqldump.</p>
  
  <p>I want to make something like:</p>
  
  <pre><code>mysqldump --compact --no_create_info --tab=testing --fields-enclosed-by=\" --fields-terminated-by=, -uroot -proot mydatabase mytable
  </code></pre>
  
  <p>but i keep getting this error:</p>
  
  <pre><code>(Errcode: 13) when executing 'SELECT INTO OUTFILE'
  </code></pre>
  
  <p>I made my testing folder writable(I'm using Ubuntu as enviornment). Can somenone explain how to export a table in a CSV file, or how to modify my command shell in order to work? Thanks!</p>