From the course: Google Cloud Platform (GCP) Essential Training for Developers
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Connecting to and querying your database from App Engine - Google Cloud Tutorial
From the course: Google Cloud Platform (GCP) Essential Training for Developers
Connecting to and querying your database from App Engine
- [Instructor] We now have a database in Cloud SQL. It's time to connect to it from our App Engine application. Let's learn how to do that. First, let's select the database instance we want to connect to. Then we see this Connect to this instance section over here. We have many options. For example, connect using Cloud Shell, connect from a Compute Engine VM Instance, and we have the option to see all connection methods. Since we're going to connect from Google App Engine, let's go to see all connection methods. Let's press Connecting from App Engine. All right, we've landed on Connecting from APP Engine standard environment to Cloud SQL. There are options for different databases over here, but we're going to follow the MySQL option since our database is MySQL. So the first step is to set up a Cloud SQL instance. But since we've already done that, then we'll skip this step and head straight to Configuring App Engine. There…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.