title: Save MySQL query results into a text file
body: <p>I want to save a MySQL query result to to a text file like this:</p>
  
  <pre><code>SELECT * FROM orders INTO OUTFILE '/data.txt'
  </code></pre>
  
  <p>However, I don't have write permission on the server. Where can I write to or is there a simpler way?</p>