Skip to content

Lightsail Database Timezone

0

Is there any way I can change the Lightsail Database's default time zone? The current database time zone is set to "UTC". i want to change it to a specific timezone.

asked 2 years ago262 views
1 Answer
1
Accepted Answer

Hello.

Lightsail database parameters can be changed using the AWS CLI.
https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-updating-database-parameters.html

If you are using MySQL, you can change it using the AWS CLI below.
You must restart the Lightsail database after making changes.

aws lightsail update-relational-database-parameters --relational-database-name "db-name" --parameters "parameterName=time_zone,parameterValue=Asia/Tokyo,applyMethod=immediate"

AWS CLI can be executed from CloudShell.
https://docs.aws.amazon.com/cloudshell/latest/userguide/welcome.html

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago
EXPERT
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.