简体   繁体   English

从phpmyadmin作为服务器转移到谷歌云平台作为服务器?

[英]Shift from phpmyadmin as Server to Google Cloud platform as server?

Currently I am using PhpMyAdmin as my server. 目前我使用PhpMyAdmin作为我的服务器。 Now I want to shift to Google cloud as my server. 现在我想转移到Google云作为我的服务器。

I have few php files which are called as url from android app, these php file connects to mysql database and returns result back. 我有几个PHP文件,从Android应用程序称为url,这些php文件连接到mysql数据库并返回结果。 Relative paths of images are stored in the database and these images are stored on server. 图像的相对路径存储在数据库中,这些图像存储在服务器上。

I am not able to figure out how I can perform same thing with Google cloud. 我无法弄清楚如何使用Google云执行相同的操作。 I tried to upload same php file on google cloud and database to google cloud sql. 我试图将谷歌云和数据库上的相同php文件上传到google cloud sql。 But, I don't know how to access relative path images or individual php files, and I am lost as I am new to Google cloud. 但是,我不知道如何访问相对路径图像或单个php文件,因为我是Google新手,所以我很失落。

Can someone please help? 有人可以帮忙吗? Thank you! 谢谢!

You'll probably want to use Google Cloud Storage: 您可能希望使用Google云端存储:

https://cloud.google.com/appengine/docs/php/googlestorage/ https://cloud.google.com/appengine/docs/php/googlestorage/

Your site users can't upload their files directly to App Engine, so you can let them upload to Cloud Storage and then keep the metadata in your Cloud SQL. 您的站点用户无法将他们的文件直接上传到App Engine,因此您可以让他们上传到云存储,然后将元数据保存在Cloud SQL中。

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

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