Dedicated MySql server works with app engine

只谈情不闲聊 提交于 2019-12-04 16:50:39

Google App Engine has a socket API that allows outbound sockets for paid apps, so it is possible to use an external MySQL service. To do this, follow the instructions at the link you provide, but always use the com.mysql.jdbc.Driver JDBC driver, and a URL like jdbc:mysql://your_external_mysql_server:3306/database_name?user=your_user&password=1234. Ensure your external MySQL server has port 3306 open.

As mentioned by others this may not be advisable as it will have substantially worse performance that the Datastore or Google Cloud SQL. You will also lose the reliability and scaling that Google App Engine brings. Moreover hosting a dedicated MySQL instance and paying for bandwidth to it is likely to end up more expensive than simply using Datastore or Cloud SQL.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!