mysql.time_zone Table
The mysql.time_zone
table is one of the mysql system tables that can contain time zone information. It is usually preferable for the system to handle the time zone, in which case the table will be empty (the default), but you can populate the mysql time zone tables using the mysql_tzinfo_to_sql utility. See Time Zones for details.
MariaDB starting with 10.4
In MariaDB 10.4 and later, this table uses the Aria storage engine.
MariaDB until 10.3
In MariaDB 10.3 and before, this table uses the MyISAM storage engine.
The mysql.time_zone
table contains the following fields:
Field | Type | Null | Key | Default | Description |
---|---|---|---|---|---|
Time_zone_id |
int(10) unsigned |
NO | PRI | NULL |
ID field, auto_increments. |
Use_leap_seconds |
enum('Y','N') |
NO | N | Whether or not leap seconds are used. |
Example
SELECT * FROM mysql.time_zone; +--------------+------------------+ | Time_zone_id | Use_leap_seconds | +--------------+------------------+ | 1 | N | | 2 | N | | 3 | N | | 4 | N | | 5 | N | | 6 | N | | 7 | N | | 8 | N | | 9 | N | | 10 | N | ... +--------------+------------------+
See Also
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.
© 2021 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/mysqltime_zone-table/