Can I use a MySQL database with an App Engine application

前端 未结 8 1584
广开言路
广开言路 2020-12-01 14:15

I know that App Engine has its own datastore. This is great for most cases and fairly easy to used. However, we have a MySQL database that we use for several applications an

相关标签:
8条回答
  • 2020-12-01 14:23

    The simple answer is : NO.

    The way to access your MySQL would be by exposing a web-service interface to it.

    0 讨论(0)
  • 2020-12-01 14:23

    I am still in the learning phase of all this, but I am fairly certain you can do this now a few ways:

    • Link Apps Scripts to App Engine and use the JDBC and ink it to Google
    • Store your SQL database on Google Cloud Storage
    • Connect Apps Scripts via spreadsheet scripting
    • Use their Cloud SQL

    "Google Apps Script has the ability to make connections to databases via JDBC with the Jdbc Service. The current support extends to MySQL, Microsoft SQL Server and Oracle. Apps Script makes it easy to connect to databases hosted on Google Cloud SQL, but also works with other cloud hosting platforms and even local databases." https://developers.google.com/apps-script/jdbc

    (origionally from App Engine Question)

    0 讨论(0)
  • 2020-12-01 14:28

    Yes, but not the normal, by creating a web service or a simple php page that acts as an intermediate and passing the data in json or xml.

    0 讨论(0)
  • 2020-12-01 14:30

    You cannot create a direct network connection to your database. The overview page outlines the major restrictions that would stop you from using Mysql - the major one in this case being "arbitrary network connections". You can only make http(s) calls from within app engine.

    The JVM runs in a secured "sandbox" environment to isolate your application for service and security. The sandbox ensures that apps can only perform actions that do not interfere with the performance and scalability of other apps. For instance, an app cannot spawn threads, write data to the local file system or make arbitrary network connections. An app also cannot use JNI or other native code. The JVM can execute any Java bytecode that operates within the sandbox restrictions.

    0 讨论(0)
  • 2020-12-01 14:41

    Google recently announced support for Cloud SQL in GAE - http://googleappengine.blogspot.com/2011/10/google-cloud-sql-your-database-in-cloud.html

    0 讨论(0)
  • 2020-12-01 14:41

    Look at SDC (Secure Data Connector).

    And same question

    App Engine and MySQL

    0 讨论(0)
提交回复
热议问题