在MySQL中更改连接时区 [英] Changing the connection timezone in MySQL

查看:397
本文介绍了在MySQL中更改连接时区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的服务器在MDT

所以我用下面的一个来转换EST

So I used following one to convert EST

SET  time_zone = '-5:00'

但是,由于

While `EST` is only valid in winter, while in summer how to change it to `EDT`

我只是尝试使用命名时区.但是我遇到了以下错误

I just try to used named time zone. But I am getting following error

 #1298 - Unknown or incorrect time zone: 'America/Toronto'

我不知道如何解决这个问题

I don't understand how to solve this problem

我该如何切换

UTC -05至UTC-04

UTC -05 TO UTC-04

推荐答案

由于使用Windows,因此必须将时区描述表导入到MySQL服务器.

Since you're using Windows, your going to have to import the time zone description tables to your MySQL server.

http://dev.mysql.com/downloads/timezones.html

这篇关于在MySQL中更改连接时区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆