title: command to export mysql database to a file
body: <p>I am want to export database table to a file.<br>
  I am using the following code, but it gives the following error.                    </p>
  
  <pre><code>String filename="D:/backup.txt";
  </code></pre>
  
  <p>I already create </p>
  
  <pre><code>st.executeQuery("select * from tamil into outfile'"+filename+"' fields terminated by ','");
  </code></pre>
  
  <p>But the error is:</p>
  
  <blockquote>
    <p>java.sql.SQLException: Can't
    create/write to file 'D:\backup.txt'
    (Errcode: 13)</p>
  </blockquote>
  
  <p>help me to clear the error<br>
  Thanks</p>