Connecting to a remote MySQL database on Google app engine

前端 未结 4 2160
北荒
北荒 2020-12-20 02:10

I\'m working on an application to run on Google app engine. Normally, I would have to enable billing/pay if am using Google Cloud SQL. So for a start, I decided to connect r

4条回答
  •  梦毁少年i
    2020-12-20 02:36

    Unfortunately, App Engine does not support External calls:

    An App Engine application cannot:

    write to the filesystem. PHP applications can use Google Cloud Storage for storing persistent files. Reading from the filesystem is allowed, and all application files uploaded with the application are available.

    open a socket or access another host directly. An application can use the App Engine URL fetch service to make HTTP and HTTPS requests to other hosts on ports 80 and 443, respectively.

    respond slowly. A web request to an application must be handled within a few seconds. Processes that take a very long time to respond are terminated to avoid overloading the web server.

    make other kinds of system calls.

提交回复
热议问题