I have some code that is working on the local GAE server but once I publish it to GAE it throws the error \"driver: bad connection\".
Below code generates a new *sql
I ended up needing to change my dbcloud variable to include the region of the SQL server changing it from:
'projectid:instancename'
To:
'projectid:regionname:instancename'
No idea why I need to do this as it's not in the docs of https://github.com/go-sql-driver/mysql but is all working now!