Skip to content

Instantly share code, notes, and snippets.

先说解决方式:
Windows TZ环境变量设置:
TZ=CST-8:00
以下为一些心得:
MySQL的system_time_zone读取错误的问题,会导致以下类似命令出现Warning:
show variables like '%time_zone%';
show variables like '%char%';
Note:举例说明以中国时间为主体
1.时区定义TZ
含义:CST代表时区的别名,后面的+8:00才是实际定义时区的;
# 下面两个其实代表同一个时区,只是时区别名不一样,区别在于这里的名字ABC是非标准的. 但其实CST本身也有很多国家在用,比如美国、中国。
TZ=CST-8:00
TZ=ABC-8:00
# 默认为+0,当然-0也没毛病, 可不写出来;其实对于TZ来讲这时候标准别名应该用UTC,ZZZ是随意的一个名字。
TZ=ZZZ
TZ=ZZZ+0
..\MySQL\MySQL Server 5.7\DATA\my.ini
------------这两个可以省略-------------------------
[client]
default-character-set=utf8mb4
[mysql]
default-character-set=utf8mb4
-----------just use this----------------------------
# system-time-zone could be set in OS ENVIRON [TZ=CST-8:00], if mysql failed to get from os by default.
# default-time-zone could be removed [SYSTEM by default] if system-time-zone is rightly getted by mysql.
@stawidy
stawidy / speedtest-server-list.txt
Created December 27, 2018 04:44
Speedtest 节点列表
17584) Chongqing Mobile Company (Chongqing, CN)
5726) China Unicom Chong Qing Branch (Chongqing, China)
5530) CCN (Chongqing, China)
19076) China Telecom (ChongQing, China)
20054) YunJinTianFu (Chengdu, China)
11444) University of Electronic Science and Technology of China (Chengdu, China)
2461) China Unicom (Chengdu, China)
4575) China Mobile Group Sichuan (Chengdu, China)
16398) China Mobile,GuiZhou (Guiyang, China)
5292) China Mobile Group Shaanxi Company Limited (Xi'an, China)
@mildcore
mildcore / first.md
Last active April 11, 2020 09:27
First Gist

This is my first gist.