GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-docs-samples/flexible/cloudsql at master · lnavarette/java-docs-samples

Expand file tree

/

cloudsql

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

cloudsql

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src/main
src/main
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

Cloud SQL sample for Google App Engine Flexible

Open in Cloud Shell

This sample demonstrates how to use Cloud SQL on Google App Engine Flexible

Setup

  • If you haven't already, Download and initialize the Cloud SDK

    gcloud init

  • If you haven't already, Create an App Engine app within the current Google Cloud Project

    gcloud app create

  • If you haven't already, Setup Application Default Credentials

    gcloud auth application-default login

  • Create an instance

  • Create a Database

  • Create a user

  • Note the Instance connection name under Overview > properties

Looks like: projectID:region:instance

Running locally

$ mvn clean jetty:run -DINSTANCE_CONNECTION_NAME=instanceConnectionName -Duser=root -Dpassword=myPassword -Ddatabase=myDatabase

Deploying

$ mvn clean package appengine:deploy -DINSTANCE_CONNECTION_NAME=instanceConnectionName -Duser=root -Dpassword=myPassword -Ddatabase=myDatabase

Cleaning up

  • Delete your Instance
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.