title: how to fire a query in mysql prompt using java code
body: <pre><code>Connection conn = getDBConnection(); //MYSQL CONNECTION. 
  conn.prepareStatement("use testspl").execute();
  conn.prepareStatement("SOURCE c:\Test.sql").execute()
  </code></pre>
  
  <p>Is this right way to fire a queries in mysql?</p>
  
  <p>I tried but its not working, I'm getting the error:</p>
  
  <blockquote>
    <p>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SOURCE C:\New.sql'"</p>
  </blockquote>
  
  <p>Can someone help me figure out where I've gone wrong? </p>