I have been digging deep to try and find the answer here and on Google...hopefully someone can help.
What I am trying to do is connect to MySQL from a Google Spreadsheet script found here:
https://developers.google.com/apps-script/jdbc#reading_from_a_database
First I set up the server following these instructions:
https://help.ubuntu.com/community/JDBCAndMySQL
I get this error: "Failed to establish a database connection. Check connection string, username and password. (line 2, file "Code")Dismiss"
Line 2 looks like this:
var conn = Jdbc.getConnection("jdbc:mysql://65.65.65.65:3306/dbname", "user", "password")
Then I find out that there is a bug in the JDBC however it is due to Hostnames and the solution is to use the IP instead. I am already using the IP so I don't think this bug is
Mentioned here: Google Apps Script - JDBC Connection Failed
and here: What is the root error behind "Failed to establish a database connection. Check connection string, username and password."
Confirmed and detailed here: https://code.google.com/p/google-apps-script-issues/issues/detail?id=1856
.......now I don't believe my problem is with the above mentioned bug. I think its due to mysql being only accessible via SSH?
If that is the case then what I believe I need help with is modifying my code to connect over SSH.
Or maybe I am wrong and I need to explore making mysql public...but that just doesn't feel right.
Any and all thoughts are more than welcome.