gpt4 book ai didi

mysql - 无法将mysql时区设置为马德里

转载 作者:可可西里 更新时间:2023-11-01 06:37:24 24 4
gpt4 key购买 nike

根据这个question关于如何在 mysql 中设置时区和这个时区 list ,我认为这应该有效:

SET time_zone = 'Europe/Madrid';

但这就是 sqlBuddy 记录的内容:

The following errors were reported:Unknown or incorrect time zone: 'Europe/Madrid'

最佳答案

确保已填充时区信息表。来自 mysql :

The value can be given as a named time zone, such as 'Europe/Helsinki', 'US/Eastern', or 'MET'. Named time zones can be used only if the time zone information tables in the mysql database have been created and populated.

尽管我个人更喜欢以 UTC 格式存储所有日期。我发现它使推理变得简单得多,尤其是在引入夏令时时。

关于mysql - 无法将mysql时区设置为马德里,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11331677/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com