Change Google Cloud SQL CURRENT_TIMESTAMP time zone?

前端 未结 2 1614
谎友^
谎友^ 2021-02-07 22:11

I\'m using CURRENT_TIMESTAMP in Google Cloud SQL and according to Google, it returns the server\'s current time.

Currently, with the time that it returns, i

2条回答
  •  Happy的楠姐
    2021-02-07 22:48

    There is a new way to to change Google cloud SQL time zone https://stackoverflow.com/a/29758598/4121388

    Instructions: https://cloud.google.com/sql/docs/mysql-flags

    1. Go to the Google Developers Console.
    2. Create a new Developers Console project, or open an existing project by clicking on the project name.
    3. In the sidebar on the left, click Storage > Cloud SQL to show a list of Cloud SQL instances for the project.
    4. Open your instance and click Edit. If you need to create a new instance, click New instance.
    5. Scroll down to the MySQL Flags section.
    6. Choose flags from the drop-down menu and set their values.
    7. Click Save. You can check your flags under MySQL Flags on the overview page.

提交回复
热议问题