Upgrade RDS timezones

0

Hi team, In mexico from this year we no longer use daylight saving time, I have tried several ways to update my RDS without success, the mysql community released fixes for this but I can not write in the mysql db with the RDS admin user, is there a way to update them? my mysql version is 5.7

The fix is in https://dev.mysql.com/downloads/timezones.html

質問済み 1年前346ビュー
1回答
0

Hi there.

I don't believe you can do that with RDS as those are managed instances. You can, instead, change the timezone:

For a DB instance running MySQL 5.5, 5.6, 5.7, and 8.0 set the time_zone parameter in the DB parameter group for the DB instance. All DB instances and read replicas that use the parameter group change to use the new time zone. You can't change the time zone for Amazon RDS for MySQL versions prior to 5.5. By default, the time zone for RDS for MySQL DB instances is Coordinated Universal Time (UTC). For more information, see Local time zone for MySQL DB instances.

I hope this helps.

profile pictureAWS
エキスパート
回答済み 1年前
  • Thank you Jose, the time zone is already configured in the parameter group and I see the correct time zone in rds, the problem is that the America/Monterrey time zone is using UTC-5 and not UTC-6 as it should be.

    mysql> SELECT @@global.time_zone, @@session.time_zone; +--------------------+---------------------+ | @@@global.time_zone | @@session.time_zone | +--------------------+---------------------+ | America/Monterrey | | America/Monterrey | +--------------------+---------------------+ 1 row in set (0.00 sec)

    mysql> SELECT current_timestamp(); +---------------------+ | current_timestamp() | +---------------------+ | 2023-07-05 14:13:39 | +---------------------+ 1 row in set (0.00 sec)

  • That's something that will probably have to come from the RDS team, I'm afraid.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ