This video walks you through the process of setting up and using a Google Cloud SQL instance. It covers creating a database and then connecting to it from the standard MySQL client running on a laptop. Then you’ll see how to create PHP pages running on Google Compute Engine and App Engine that display data retrieved from Cloud SQL. Also included in the demonstration is how to use phpMyAdmin on Compute Engine to connect to and manage Cloud SQL databases.
Sample scripts are located at: https://gist.github.com/jsimonweb/7533007