title: java - mysql - select query outfile - where is file getting saved
body: <p>connecting to a mysql database from java using jdbc.
  declaring a query</p>
  
  <pre><code>String query = 
                      "SELECT *"+
                      "FROM tt2"+
                      "INTO OUTFILE 'DataFormatted.csv'"+
                      "FIELDS TERMINATED BY ','"+
                      "ENCLOSED BY '\"'" +
                      "LINES TERMINATED BY '\n'";
  </code></pre>
  
  <p>executing query using executQuery(query).</p>
  
  <p>how to change above code to save DataFormatted.csv into c drive root directory</p>