Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8490287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:04:21+00:00 2026-06-10T22:04:21+00:00

I followed the Google Apps Script JDBC example shown at https://developers.google.com/apps-script/jdbc but have been

  • 0

I followed the Google Apps Script JDBC example shown at https://developers.google.com/apps-script/jdbc but have been unsuccessful connecting to a MySQL database hosted at Amazon. My connection string looks like this (scrubbed):

var conn = Jdbc.getConnection("jdbc:mysql://myAmazonhost:3306/", "myUser", "myPass");

I’m able to connect remotely to the Amazon MySQL database from my development system using both MySQL Workbench and Navicat and have checked/verified the host name, username and password in the Google script.

I added the Google servers listed under Accessing Local Databases to the Amazon Security Group but no luck. I keep getting the error:

Failed to establish a database connection. Check connection string,
username and password.

I’m probably missing something simple. Anyone else connecting from a Google script to an Amazon MySQL database? I’d sure appreciate any advice. Thanks.

(Edit…)

Sorry, I inadvertently removed the database name when I sanitized my example above. The DB name is specified in the code.

var conn = Jdbc.getConnection("jdbc:mysql://myAmazonhost:3306/myDB", "myUser", "myPass"); 

Twelve hours after I posted this question, the script started working–no database connection errors. I built a report that created a spreadsheet using information retrieved from the Amazon MySQL database. (So cool to see all this working in the cloud.)

But… I hadn’t made any changes to the JDBC connection string. And no changes were made to the Security Group configuration on the Amazon side. It just started working.

This morning, I started working on the script. I didn’t get very far–the big ugly red database connection error message popped up. No changes to code. It just stopped working. I verified the MySQL database is up and accessible from my desktop admin program. No issues.

Is anyone else experiencing erratic connections from Google scripts to external databases? I’m hoping this is just an isolated glitch.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:04:23+00:00Added an answer on June 10, 2026 at 10:04 pm

    Turns out that the issue was related to the database engine version. I created a new instance using engine version 5.5.25a and the connection worked. I went back to my original database and modified it from 5.5.8 to 5.5.25a and it worked as well. Not sure what’s going on with Google Apps Script but changing the engine version to 5.5.25a fixed the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have followed this tutorial on Google https://developers.google.com/google-apps/marketplace/tutorial_php to create a marketplace app for
I have followed the hello world example for google apps script htmlService and I
I have followed these instructions: https://developers.google.com/console/help/#generatingdevkeys/ . I registered the freebase service and added
Hi All I have followed the following example http://www.google.com/codesearch#search/&q=NumberFormattingTextWatcher&exact_package=android&type=cs I have CurrencyTextWatcher as a
I have followed the Local Service example provided by Google, but my Context::bindService(...) always
I followed https://developers.google.com/web-toolkit/articles/mvp-architecture . In their model, they use one class 'Contact' and a
I have followed the instructions found at http://code.google.com/p/pubsubhubbub/wiki/DeveloperGettingStartedGuide to setup a hub. When I
I have followed http://www.vogella.de/articles/AndroidLocationAPI/article.html to implement the GPS Apps ( Google Maps) I have
I followed the example at http://blog.hivedevelopment.co.uk/2009/08/google-web-toolkit-gwt-mvp-example.html and built the example GWT application, but then
I have followed the onTouch example from google located here . However, I get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.