工做日志,error parsing query: unable to find time zonegit
Windows 系统使用influxdb数据库,在执行查询语句时提示 ERR: error parsing query: unable to find time zone Asia/Shanghai
的错误。由于influxdb在non-unix系统(例如windows)上不能正常使用tz()语句。网上都说安装go环境和重启Influxd便可解决问题。但是我也安装了go,也配置了环境变量,也重启了influxd,依然报相同的错误。github
先说解决方法:安装golang,配置path和GOROOT环境变量,而且重启电脑。ITDragon 由于没有配置GOROOT,折腾了一天的时间。golang
第一步:下载window版本的golang, 下载地址https://dl.google.com/go/go1.13.1.windows-amd64.msi数据库
第二步:安装golang,并配置环境变量,包括GOROOT 和path 系统环境变量,重启电脑windows
第三步:重启influxd工具
vcpu-0:VERIFY vmcore/vmm/main/cpuid.c:386 bugNr=1036521
(祸不单行,(╬▔皿▔)凸)。配置了环境变量,考虑重启???ITDragon最讨厌的就是重启。通常机器都开了五六个IDEA,一堆数据库链接工具,一堆通信软件,POSTMAN,MQTTBOX,等。太南了 🤣🤣🤣🤣🤣🤣测试
来源go官网ui
The installer should put the c:\Go\bin directory in your PATH environment variable. You may need to restart any open command prompts for the change to take effect.
参考文档:
https://dotnetplusplus.com/2017/10/18/time-zone-and-group-by-day-in-influxdb/google