LoginSignup
2
2

More than 5 years have passed since last update.

Cactiのインストール中にtimezoneにつまずく

Last updated at Posted at 2019-02-21

このあたりを参考にしながらcactiをインストールした際のトラブル。
Cacti Versionは1.1.38。

Cactiの初期設定ウィザードに「Pre-installation Checks」というものが追加されている。チェック項目に「MySQL Timezone Support」というものがあり、ここで下記のコメントが出て先に進めなくなった。

Your Cacti database login account does not have access to the MySQL TimeZone database.

MySQL(実際はMariaDB)にTimezoneを設定する必要があるとのこと。

こちらの「Linuxの場合」を参考に設定。

Timezone table作成

# mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql

自身のTimezoneの設定

/etc/my.cnf
[mysqld]
default-time-zone = 'Asia/Tokyo'   ←この行を追加

DB再起動

# systemctl restart mariadb.service`

MySQL cactiユーザにTimezone tableのアクセス権付与

# mysql -u root -p
# Enter password:    ←MySQLのrootユーザのパスワードを入力
MariaDB [(none)]> grant select on mysql.time_zone_name to 'cactiuser'@'localhost' identified by '<password for cactiuser>';
MariaDB [(none)]> quit
Bye
#
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2