工做日誌,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