Create a Cloud SQL instance
$dsn = "/cloudsql/PROJECT:REGION:INSTANCE;dbname=DATABASE";
$user = "USER";
$password = "PASSWORD";
$db = new PDO($dsn, $user, $password); //Whatever is your favorite MySQL connection method
The important part here is /cloudsql/PRO...