[MySQL] Change the session time zone

Created on November 30, 2026

Use SET SESSION time_zone to set the time zone for the current connection.

SET SESSION time_zone = '+09:00';
SELECT @@session.time_zone;

Output

+---------------------+
| @@session.time_zone |
+---------------------+
| +09:00              |
+---------------------+

The setting lasts for this session. New connections have their own session time zone.

MySQL