title: How to load a SQL file (stored in the source folder of my Java project) into MySQL from a Java Application?
body: <p>I want to load an SQL file (which is stored in the source folder of my NetBeans Java Project) into MySQL from my Java Application during runtime. How can I do this?</p>
  
  <p>The SQL file is 15.15 MB in size and I am wondering whether I can copy into a String or not? Or if I anyhow manage to copy it to a String (though it may throw out of memory error), how to execute multiple commands in one go (because the SQL file contains many commands).</p>
  
  <p>I want to do it without using any additional tools. Just using pre-existing libraries and classes in java (that are bundled with JDK).</p>