更改云中的时区 sql

Change timezone in cloud sql

我已经在 Google Cloud 上创建了 a SQL 实例 ,我需要更改 timezone。我已经看过文档,我添加了标志 default_time_zone 并将值设置为 06:00,但是控制台不允许我写分号。

如何写入值?提前致谢。

default_time_zone 标志的正确格式是 +/-HH:MM,例如要将其设置为 GMT+6,您将写入值 +06:00。不要忘记前导零。

要修改时区,请更新名为 default_time_zone 的 Google Cloud SQL 标志。这个或任何其他数据库标志可以更新如下:

1) In the Google Cloud Platform Console, open an existing project by selecting the project name.
2) Open the instance and click Edit.
3) Scroll down to the Flags section.
4) To set a flag that has not been set on the instance before, click Add item, choose the flag from the drop-down menu, and set its value.
5) Click Save to save your changes.
6) Confirm your changes under Flags on the Overview page.

当您添加或修改这些标志时,您的实例将自动重启。 请注意,您不能修改故障转移副本上的标志。

如需进一步阅读,请参阅设置 Cloud SQL Flags 的文档。