|
|
错误: 您的Cacti数据库登录帐户无权访问MySQL TimeZone数据库。 请提供Cacti数据库帐户对 "mysql" 数据库中 "time_zone_name" 表的 "select" 访问权,并在继续之前填充MySQL的TimeZone信息。
$ t; U/ x; }: b0 }- K( F% e% Y% `' z5 Y$ Q8 Z+ k
8 M+ N1 v, ^1 Y% u$ g9 ]
2 E! Y [. e( Q q[root@ceph1 html]# mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql
3 W" ]( c' ^8 q5 H. K. V$ WEnter password: 7 S; ~4 |' Z p8 k1 q ^$ k1 }
Warning: Unable to load '/usr/share/zoneinfo/leapseconds' as time zone. Skipping it.* j, \! M* Y' j u$ c
# |' V- Y( Q3 E* r( t2 m1 y3 a0 aWarning: Unable to load '/usr/share/zoneinfo/tzdata.zi' as time zone. Skipping it.5 N2 U+ g1 _+ n) |' P
" q9 }! D2 H3 G# A O3 | n- Q[root@ceph1 ~]# mysql -u root -p
6 Y* j# j5 O+ O/ C2 n5 uEnter password: 6 t4 c; G5 P- ~! {1 }5 C5 C" d2 `
Welcome to the MariaDB monitor. Commands end with ; or \g.
* n7 b4 e$ R" q0 b8 eYour MariaDB connection id is 7
2 w% a4 w. n( lServer version: 5.5.68-MariaDB MariaDB Server) {0 S; B' p2 V( s: I6 G
7 Y5 I/ t1 |: m z$ p
5 ~7 K& t, {. m( s$ Z2 T" ^5 q, l: bCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.* O e7 E5 ?2 `+ r0 c. Y% F
+ J- {8 V8 L% O. l6 h3 V! U
- y6 D6 B& \( Y8 IType 'help;' or '\h' for help. Type '\c' to clear the current input statement.5 }2 x' C- m, {: T2 N: ?/ X
: J/ v) Z s+ C: v. a1 [! c) ]% ]4 X$ q" i( I- F
MariaDB [(none)]> GRANT SELECT ON mysql.time_zone_name TO cactiuser@localhost IDENTIFIED BY 'cactiuser';
5 V+ F( |5 [! N7 U0 BQuery OK, 0 rows affected (0.00 sec)
7 I3 Z1 u/ W) J3 f" r
# D7 G+ G# W7 v# V* N( t: m2 X) U5 I0 ~0 E& O$ y% Y6 y. G8 C7 E6 _
|
|