如何防止自动更新应用于云 SQL 实例

How to prevent automatic updates being applied to the Cloud SQL instance

如何防止自动更新应用于云 SQL 实例。对于许多条目,我看到“类型”为“更新”,“状态”为“完成”。它是一个 MySQL 5.7 实例。我应该如何防止更新我的 Cloud SQL 实例?

https://cloud.google.com/sql/faq#maintenancerestart

不幸的是,这可能是不可能的。云 SQL 是一项托管服务,并附带 built-in 基础架构支持。据我所知,对您的数据库软件进行绝对控制的唯一方法是 运行 在 GCE 实例上,而不是在云 SQL 实例上。

Cloud SQL 是一项 fully-managed 数据库服务,因此无法阻止自动更新。正如您在 FAQ, minor updates are deployed as they are released. If you have a second-generation instance, you might want to consider a preferred maintenance window 中所见,这对您的应用程序的破坏性较小。