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 7673635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:33:29+00:00 2026-05-31T16:33:29+00:00

Update 2022 There is cloud sql proxy now: https://cloud.google.com/sql/docs/mysql/sql-proxy#how-works Old Question I am currently

  • 0

Update 2022

There is cloud sql proxy now:

https://cloud.google.com/sql/docs/mysql/sql-proxy#how-works

Old Question

I am currently using my local machine to manipulate data, google app engine to host my web service and google cloud sql to handle the database.
However, I need to upload my data to gae first, then run a backend job on gae to uploading all data to google cloud sql later. It is time wasting to upload data twice.
I would like to import/update some date from my local machine to google cloud sql directly.

Right now, google cloud sql only fully supported google app engine as its client.

Google Cloud SQL is currently only available to Google App Engine
applications. To develop Google App Engine applications, you need to
install the App Engine SDK, available in either Python or Java:

However, since google cloud sql provides a jar db driver to allow command line client / SQuirrel SQL Client access from local machine. It looks like I can write some java code to interact with the cloud sql via this jar in local machine. Or I could use tools like jpype to access google cloud sql via python.

Is that possible? Where should I start?
Or is there any alternative way that I can use python on local machine to access google cloud sql?

https://developers.google.com/cloud-sql/docs/commandline

http://jpype.sourceforge.net/

  • 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-05-31T16:33:30+00:00Added an answer on May 31, 2026 at 4:33 pm

    I found a way to connect google cloud sql from python via SDK

    def connect_sql(instance, database = None):
        from google.storage.speckle.python.tool import google_sql    
        database = google_sql.DatabaseConfig(instance, database)
    
        sql_cmd_config = google_sql.config.SQLCmdConfig(None)
        sql_cmd_config.add('__googlesql__', instance, None, None, database,
                        google_sql.GoogleSqlDriver.NAME, None, None)
        sql_cmd = google_sql.GoogleSqlCmd(sql_cmd_config)
        sql_cmd.set_database(instance)
    
        sql_cmd.preloop()
        return sql_cmd._SQLCmd__db
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Update 2018 TL;DR; LaTEX for WPF https://github.com/ForNeVeR/wpf-math Original question I need to have a
Update: Now that it's 2016 I'd use PowerShell for this unless there's a really
UPDATE This is an old question for an old version of Xcode. It turned
UPDATE: Please see https://softwarerecs.stackexchange.com/questions/71464/java-library-to-insert-invisible-text-into-a-pdf instead. I want to insert invisible text into an existing
UPDATE : The full site code is here - https://github.com/eWizardII/PeerInstruction I have the following
Update: Check out this follow-up question: Gem Update on Windows - is it broken?
Update: Thanks for the suggestions guys. After further research, I’ve reformulated the question here:
Update: Please read this question in the context of design principles, elegance, expression of
UPDATE: I've completely changed the question because in reality, I'm having a really hard
UPDATE: I made a mistake in my debugging - this question is not relavent

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.