title: Connect to mysql via JDBC in JavaScript
body: <p>I am trying to pull data from a MySql database into a Google Doc via Apps Script. When I try connect to the database I get the error below because Jdbc is undefined.</p>
  
  <pre><code>Cannot read property 'getConnection' of undefined 
  </code></pre>
  
  <p>Below is the code I am using</p>
  
  <pre><code>&lt;div&gt;
    &lt;span id="import" style="background-color: red"&gt;Import&lt;/span&gt;
  &lt;/div&gt;
  &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;
  &lt;/script&gt;
  &lt;script&gt;
    /**
     * On document load, assign click handlers to each button and try to load the
     * user's origin and destination language preferences if previously set.
     */
    $(function() {
      $('#import').click(import_test); 
    });
  
  
  // Replace the variables in this block with real values.
  var address = 'ip';
  var user = 'username';
  var userPwd = 'password';
  var db = 'db';
  
  var dbUrl = 'jdbc:mysql://' + address + '/' + db;
  
  // Read up to 1000 rows of data from the table and log them.
  function readFromTable() {
    var conn = Jdbc.getConnection(dbUrl, user, userPwd);
  }
  
  function import_test() {
  console.log('ping');
  readFromTable();
  console.log('ping2');
  }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>The documentation is only for Google Cloud SQL and I can't find anything in the mysql documentation on how to do this in javascript. </p>
  
  <p>Any ideas on how to connect to MySql via Apps Script?</p>
  
  <p>Thanks.</p>