title: FILE privilege to MySQL session/user
body: <p>When someone is registerd in my MySQL database, this function must work:</p>
  
  <pre><code>mysql_query("SELECT mail 
                 FROM users 
                 INTO OUTFILE 'test.txt'");
  </code></pre>
  
  <p>But I get the error</p>
  
  <blockquote>
    <p>Access denied for user 'registerdb'@'%' (using password: YES)</p>
  </blockquote>
  
  <p>So how I give the FILE writing permission to the session/user?</p>