title: Running a .sql script using MySQL with JDBC
body: <p>I am starting to use MySQL with JDBC.</p>
  
  <pre><code>Class.forName("com.mysql.jdbc.Driver");
  conn = DriverManager.getConnection("jdbc:mysql:///x", "x", "x");
  stmt = conn.createStatement();
  stmt.execute( "CREATE TABLE amigos" +
              "("+
              "id          int AUTO_INCREMENT          not null,"+
              "nombre      char(20)                    not null,"+
              "primary key(id)" +
              ")");
  </code></pre>
  
  <p>I have 3-4 tables to create and this doesn't look good.</p>
  
  <p>Is there a way to run a .sql script from MySQL JDBC?</p>