[英]Updating a Google Cloud SQL Database instance
I have a deployed Cloud SQL Database
instance running right now and it works fine. 我现在正在运行已部署的
Cloud SQL Database
实例,它运行正常。 I am able to access and use it via my PHP
Google App Engine
app. 我可以通过我的
PHP
Google App Engine
应用程序访问和使用它。 I also have a local SQL Database for development. 我还有一个本地SQL数据库用于开发。
Locally, I have made some changes to the structure of the database (added new columns) and would like to push those changes to the deployed app. 在本地,我对数据库的结构进行了一些更改(添加了新列),并希望将这些更改推送到已部署的应用程序。
When I try to do this via the documented method on the App Engine site, I get an error saying the import failed for an unknown reason. 当我尝试通过App Engine网站上的文档化方法执行此操作时,我收到一条错误消息,指出导入失败的原因不明。
I am using a .sql
dump made by PhpMyAdmin
and have done this successfully for the initial import. 我正在使用由
PhpMyAdmin
制作的.sql
转储,并已成功完成初始导入。 I made sure to include USE DATABASE NAME
in the dump. 我确保在转储中包含
USE DATABASE NAME
。
Any ideas as to why it's failing? 关于它为什么失败的任何想法? What is the best way to update a Cloud SQL Database?
更新Cloud SQL数据库的最佳方法是什么? Thanks a lot!
非常感谢!
An easy way is to request an IP, whitelist the IP you are connecting from ( link ) and use the MySQL client ( link ). 一种简单的方法是请求IP,将您连接的IP列入白名单( 链接 )并使用MySQL客户端( 链接 )。 Over IP you can also use GUI tools like MySQL Workbench, Toad, SQuirrel SQL and others ( link ).
通过IP,您还可以使用MySQL Workbench,Toad,SQuirrel SQL等GUI工具( 链接 )。
您可以使用以下说明将phpMyAdmin设置为应用程序的不同版本: https : //gae-php-tips.appspot.com/2013/05/26/setting-up-phpmyadmin-on-app-engine/可能是更新Cloud SQL数据库的最简单方法......
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.