ERROR: Your MySQL TimeZone database is not populated

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

nimenhao
Posts: 14
Joined: Wed Feb 08, 2017 3:58 am

ERROR: Your MySQL TimeZone database is not populated

Post by nimenhao »

please help me (my English is poor )
when I install the cacti-1.0.1
my problem:

Pre-installation Checks

MySQL TimeZone Support

ERROR: Your MySQL TimeZone database is not populated. Please populate this database before proceeding.



system infomation
centos6.3
mysql version 5.6.35
# date -R
Wed, 08 Feb 2017 17:28:51 +0800

mysql> show variables like '%time_zone%';
+------------------+--------+
| Variable_name | Value |
+------------------+--------+
| system_time_zone | CST |
| time_zone | +08:00 |
+------------------+--------+
2 rows in set (0.00 sec)



###################################
i have solve my problem
将系统时区导入数据库中

# mysql_tzinfo_to_sql /usr/share/zoneinfo/ | mysql -u root -p mysql
Last edited by nimenhao on Wed Feb 08, 2017 8:29 pm, edited 1 time in total.
klatta
Posts: 1
Joined: Wed Feb 08, 2017 11:42 am

Re: ERROR: Your MySQL TimeZone database is not populated

Post by klatta »

This site should help you with that problem. It worked for me.

http://www.geeksengine.com/article/popu ... mysql.html
nimenhao
Posts: 14
Joined: Wed Feb 08, 2017 3:58 am

Re: ERROR: Your MySQL TimeZone database is not populated

Post by nimenhao »

klatta wrote:This site should help you with that problem. It worked for me.

http://www.geeksengine.com/article/popu ... mysql.html

thak you very much,I have read your solutions and solve my problem.
geekssengine is a good site.
do you use Social software? like facebook or whatapps?
joca
Posts: 14
Joined: Mon Feb 20, 2017 8:09 am
Location: Brasil
Contact:

Re: ERROR: Your MySQL TimeZone database is not populated

Post by joca »

I have this erro;
root@cacti:/home/joca# mysql_tzinfo_to_sql /usr/share/zoneinfo/ | mysql -u root -p cacti
Enter password:
ERROR 1146 (42S02) at line 1: Table 'cacti.time_zone' doesn't exist
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: ERROR: Your MySQL TimeZone database is not populated

Post by phalek »

You need to load this into the mysql database, not into the cacti database. So try this:

Code: Select all

mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql 
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
joca
Posts: 14
Joined: Mon Feb 20, 2017 8:09 am
Location: Brasil
Contact:

Re: ERROR: Your MySQL TimeZone database is not populated

Post by joca »

root@cacti:/home/joca# mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql
Enter password:
Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: ERROR: Your MySQL TimeZone database is not populated

Post by phalek »

Check the pre-install steps if you can now proceed with the installation.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: ERROR: Your MySQL TimeZone database is not populated

Post by camerabob »

phalek wrote:You need to load this into the mysql database, not into the cacti database. So try this:

Code: Select all

mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql 
I believe the syntax is a bit off (after doing this a dozen times myself...)

Code: Select all

mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql -p
The database name follows the user name in the sequence, followed by the password parameter.

Good luck.
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: ERROR: Your MySQL TimeZone database is not populated

Post by phalek »

Both work, but you can look here for the official syntax(or examples): https://dev.mysql.com/doc/refman/5.7/en/connecting.html
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
joca
Posts: 14
Joined: Mon Feb 20, 2017 8:09 am
Location: Brasil
Contact:

Re: ERROR: Your MySQL TimeZone database is not populated

Post by joca »

mysql> GRANT ALL PRIVILEGES ON mysql.* TO 'cacti'@'localhost' WITH GRANT OPTION;
Solved My Problem!
nimenhao
Posts: 14
Joined: Wed Feb 08, 2017 3:58 am

Re: ERROR: Your MySQL TimeZone database is not populated

Post by nimenhao »

joca wrote:mysql> GRANT ALL PRIVILEGES ON mysql.* TO 'cacti'@'localhost' WITH GRANT OPTION;
Solved My Problem!

this problem maybe is datebase version ,my mysql is 5.7,but mysql5.3 tables is different.
(My English is poor,May be unclear)
(I have a questonWhat social software do you use?)
izmenoff
Posts: 19
Joined: Tue Mar 28, 2017 6:27 am
Location: Belarus

Re: ERROR: Your MySQL TimeZone database is not populated

Post by izmenoff »

nimenhao, you can try:
cd cacti/cli
php repair_database.php --force
php upgrade_database.php

it solved my the same problem
nimenhao
Posts: 14
Joined: Wed Feb 08, 2017 3:58 am

Re: ERROR: Your MySQL TimeZone database is not populated

Post by nimenhao »

joca wrote:I have this erro;
root@cacti:/home/joca# mysql_tzinfo_to_sql /usr/share/zoneinfo/ | mysql -u root -p cacti
Enter password:
ERROR 1146 (42S02) at line 1: Table 'cacti.time_zone' doesn't exist

It is database version problem
nimenhao
Posts: 14
Joined: Wed Feb 08, 2017 3:58 am

Re: ERROR: Your MySQL TimeZone database is not populated

Post by nimenhao »

izmenoff wrote:nimenhao, you can try:
cd cacti/cli
php repair_database.php --force
php upgrade_database.php

it solved my the same problem

thank you very much!!!
alipsit
Posts: 2
Joined: Wed Apr 05, 2017 9:56 am

Re: ERROR: Your MySQL TimeZone database is not populated

Post by alipsit »

Hi, I followed the following video series:

https://www.youtube.com/watch?v=5COQumLGDzY

I also have the "ERROR: Your MySQL TimeZone database is not populated. Please populate this database before proceeding."

Is there anything that this tutorial misses that I need to do regarding the timezones?

Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests