スキップしてコンテンツを表示

Africa/Lagos time zone not available when changing time zone for rds mysql

0

Unable to change time zone because Africa/Lagos not among list in parameter groups, what other workarounds are available

質問済み 4年前185ビュー

1回答
0

You can set "time_zone" parameter to Africa/Casablanca" (also UTC +1in the custom parameter group attached to the RDS instance, since Africa/Lagos is not available in the list.

Alternative Recommendation

  1. Set in session - Use time_zone [2] You can set your parameter to UTC and use SET time_zone = '+01:00'; command to set your time zone in a session connection. Please note that set the time zone in the session only affects the current connection, not the overall database configuration, so the time zone setting is only valid for the current session.

  2. (Better) You can have the database be Time zone-agnostic (all data in DB is UTC), and have the application be Time zone-aware.

A time zone-agnostic database stores all datetime data in UTC, while a time zone-aware application handles the conversion between UTC and local time zones( UTC +01 in your case), providing consistency in data storage and flexibility in time management.

AWS

回答済み 1年前

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

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

関連するコンテンツ