Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



Storing Data in PHP

The App Engine environment provides multiple options to store data for your application:

  • Google Cloud SQL: A relational SQL database for your App Engine application, based on the familiar MySQL database.
  • Google Cloud Storage: A storage service for objects and files up to terabytes in size, and accessible to App Engine apps via the Google Cloud Storage client library.
Name Structure Consistency Cost
Google Cloud SQL Relational Strongly consistent Google offers two billing plans for Google Cloud SQL: Packages and Per Use. More information is available in the Cloud SQL price sheet .
Google Cloud Storage (GCS) Files and their associated metadata Strongly consistent except when performing list operations that get a list of buckets or objects. There are no charges associated with making calls to Google Cloud Storage. However, any data stored in GCS is charged the usual GCS data storage fees.

Cloud Storage prices are available on the Cloud Storage price sheet .

Google Cloud SQL

Google Cloud SQL is a web service that allows you to create, configure, and use relational databases that live in Google's cloud. It is a fully-managed service offering the capabilities of a MySQL database, allowing you to focus on application development.

For more information, see Google’s Cloud SQL Overview .

Google Cloud Storage

Google Cloud Storage is useful for storing and serving large files. Additionally, Cloud Storage offers the use of access control lists (ACLs), the ability to resume upload operations if they're interrupted, and many other features. The GCS client library makes use of this resume capability automatically for your app, providing you with a robust way to stream data into GCS.

There are no charges associated with making calls to Google Cloud Storage. However, any data stored at GCS is charged the usual GCS data storage fees, which are listed on the Cloud Storage price sheet.

Applications connect to Google Cloud Storage using the Google Cloud Storage Client Library.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.