看板 Linux 關於我們 聯絡資訊
不才小弟想請教廣大的版友 近日安裝兩次Cacti都卡在同樣問題 MySQL TimeZone Support ERROR: Your Cacti database login account does not have access to the MySQL TimeZone database. Please provide the Cacti database account "select" access to the "time_zone_name" table in the "mysql" database, and populate MySQL's TimeZone information before proceeding. 一直試不出哪裡需要改更@@ http://blog.itist.tw/2016/03/install-cacti-graphing-system-monitoring-tool-on -centos-7.html -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 203.66.179.61 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1490943297.A.14A.html
pizzahut: 字面寫的不是很明顯嗎? 03/31 14:57
hirokofan: 先前我為了升級cacti到1.0x版PHP和MYSQL搞了半天總算 03/31 15:08
hirokofan: 可以跑了,結果weathermap不支援只好默默降回去QQ 03/31 15:09
請教 是我需要在Mysql 上面另外建一個 TimeZone Database 嗎 ? 還是 ? ※ 編輯: intefish (203.66.179.61), 03/31/2017 15:10:49
hirokofan: 那時候我有執行 03/31 15:33
hirokofan: mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u 03/31 15:34
hirokofan: root -p mysql (接成一行) 03/31 15:34
hirokofan: 怎麼弄的我也忘了QQ 03/31 15:35
有欸 這段我也有執行,也有下 set global time_zone = '+8:00'; 但還是沒用 ※ 編輯: intefish (203.66.179.61), 03/31/2017 15:37:29
hirokofan: mysql裏面cacti這個帳號要對mysql的timezone等資料表 03/31 15:40
hirokofan: 有存取權限 03/31 15:40
hirokofan: 那時毛多到我差點想把cacti的database的使用者設成root 03/31 15:41
是跟這一段有關係嗎 ? mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql 這一段指令我也一直卡住= = ,不太懂後面 root 後面接 mysql 是表示資料恩稱? ※ 編輯: intefish (203.66.179.61), 03/31/2017 16:36:02
pizzahut: grant select on `mysql`.`time_zone_name` to `cacti`@ 03/31 16:45
pizzahut: `localhost`; 03/31 16:45
pizzahut: PS. to 的後面是你cacti帳號,請依照實際狀況修正。 03/31 16:45
pizzahut: 然後記得 flush privileges; 03/31 16:46
底下指令沒問題 GRANT ALL ON cactidb.* TO 'cactiuser'@'localhost'; 但是 GRANT SELECT ON `mysql`.`time_zone_name` TO 'cactiuser'@'localhost'; 這段只需修改 userID嗎 ? 改了還是出現底下錯誤 ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'the manual that corresponds to your MariaDB server version for the right syntax ' at line 1 ※ 編輯: intefish (203.69.214.175), 03/31/2017 18:03:09
pizzahut: 你show grants for cactiuser@localhost; 看看格式,照 04/01 14:27
pizzahut: 那個修改看看。 04/01 14:27
kenwufederer: timezone權限 04/01 19:17
kenwufederer: CentOS 7 安裝 Cacti Server - http://wp.me/p5RAK2 04/01 19:17
kenwufederer: -1aY 04/01 19:17
kenwufederer: http://wp.me/p5RAK2-1aY 04/01 19:18
kenwufederer: 剛筆記過,給你參考 04/01 19:19
感謝大大們幫忙,總算可以正常啟用了= = ※ 編輯: intefish (203.66.179.61), 04/05/2017 15:10:41