简体   繁体   English

我可以从我的PC连接Google Cloud SQL吗?

[英]Could I connect the google Cloud SQL from my PC?

I have setup the GAE PHP develop environment in my local PC as this link( https://developers.google.com/appengine/docs/php/gettingstarted/helloworld ), could I connect the GOOGLE Cloud SQL in the PHP which running on my PC? 我已在本地PC上通过此链接( https://developers.google.com/appengine/docs/php/gettingstarted/helloworld )设置了GAE PHP开发环境,我能否在运行该PHP的PHP中连接GOOGLE Cloud SQL我的电脑?

Does the Cloud SQL requires MUST connecting from GAE living environment? Cloud SQL是否必须必须从GAE生活环境进行连接?

Thanks 谢谢

You can connect via command line from the PC directly as per the below: 您可以按照以下说明从PC直接通过命令行进行连接:

https://developers.google.com/cloud-sql/docs/commandline https://developers.google.com/cloud-sql/docs/commandline

Rather if you wish to connect from your DEV machine via a PHP file you must deploy that PHP file on a local webserver on your machine and it would work just the same. 而是,如果您希望通过PHP文件从DEV计算机连接,则必须将该PHP文件部署在计算机上的本地网络服务器上,并且其工作原理相同。

To verify that it is connecting properly, go thru the steps in the link above to establish command line connectivity. 要验证它是否正确连接,请按照上面链接中的步骤建立命令行连接。

Regards 问候

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM