[問題] CentOS7 無法安裝Cacti

看板Linux作者 (到底)時間8年前 (2017/03/31 14:54), 8年前編輯推噓4(4017)
留言21則, 3人參與, 最新討論串1/1
不才小弟想請教廣大的版友 近日安裝兩次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

03/31 14:57, , 1F
字面寫的不是很明顯嗎?
03/31 14:57, 1F

03/31 15:08, , 2F
先前我為了升級cacti到1.0x版PHP和MYSQL搞了半天總算
03/31 15:08, 2F

03/31 15:09, , 3F
可以跑了,結果weathermap不支援只好默默降回去QQ
03/31 15:09, 3F
請教 是我需要在Mysql 上面另外建一個 TimeZone Database 嗎 ? 還是 ? ※ 編輯: intefish (203.66.179.61), 03/31/2017 15:10:49

03/31 15:33, , 4F
那時候我有執行
03/31 15:33, 4F

03/31 15:34, , 5F
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u
03/31 15:34, 5F

03/31 15:34, , 6F
root -p mysql (接成一行)
03/31 15:34, 6F

03/31 15:35, , 7F
怎麼弄的我也忘了QQ
03/31 15:35, 7F
有欸 這段我也有執行,也有下 set global time_zone = '+8:00'; 但還是沒用 ※ 編輯: intefish (203.66.179.61), 03/31/2017 15:37:29

03/31 15:40, , 8F
mysql裏面cacti這個帳號要對mysql的timezone等資料表
03/31 15:40, 8F

03/31 15:40, , 9F
有存取權限
03/31 15:40, 9F

03/31 15:41, , 10F
那時毛多到我差點想把cacti的database的使用者設成root
03/31 15:41, 10F
是跟這一段有關係嗎 ? mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql 這一段指令我也一直卡住= = ,不太懂後面 root 後面接 mysql 是表示資料恩稱? ※ 編輯: intefish (203.66.179.61), 03/31/2017 16:36:02

03/31 16:45, , 11F
grant select on `mysql`.`time_zone_name` to `cacti`@
03/31 16:45, 11F

03/31 16:45, , 12F
`localhost`;
03/31 16:45, 12F

03/31 16:45, , 13F
PS. to 的後面是你cacti帳號,請依照實際狀況修正。
03/31 16:45, 13F

03/31 16:46, , 14F
然後記得 flush privileges;
03/31 16:46, 14F
底下指令沒問題 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

04/01 14:27, , 15F
你show grants for cactiuser@localhost; 看看格式,照
04/01 14:27, 15F

04/01 14:27, , 16F
那個修改看看。
04/01 14:27, 16F

04/01 19:17, , 17F
timezone權限
04/01 19:17, 17F

04/01 19:17, , 18F
CentOS 7 安裝 Cacti Server - http://wp.me/p5RAK2
04/01 19:17, 18F

04/01 19:17, , 19F
-1aY
04/01 19:17, 19F

04/01 19:18, , 20F
04/01 19:18, 20F

04/01 19:19, , 21F
剛筆記過,給你參考
04/01 19:19, 21F
感謝大大們幫忙,總算可以正常啟用了= = ※ 編輯: intefish (203.66.179.61), 04/05/2017 15:10:41
文章代碼(AID): #1OtVr15A (Linux)
文章代碼(AID): #1OtVr15A (Linux)