易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 27|回复: 2
收起左侧

connection to database 'zabbix' failed: [2059] Authentication plugin 'caching_sh

[复制链接]
发表于 2024-11-22 23:50:58 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
2009:20241023:074318.691 [Z3001] connection to database 'zabbix' failed: [2059] Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib64/mysql/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory; v. d/ ~5 i. @* O' O
  2009:20241023:074318.691 Cannot connect to the database. Exiting...
$ Q% m- r4 u/ `
. l( ~  y7 f6 a1 Y1 O. _0 Y* {
2 {5 u- {% a1 l" S) J8 l* ?$ n2 x应该是在配置的时候没有执行数据库zabbix用户的配置:1 E: e& d* @1 m7 @
mysql> alter user 'zabbix'@'localhost' identified with mysql_native_password BY 'Zabbix23@';
  q) Q: S  n- y% qQuery OK, 0 rows affected (0.01 sec)% k+ [: K5 o7 f
9 c( k7 W0 W! Z
mysql> flush privilges;6 q* ]2 p8 i+ m) G) m0 F+ e0 y
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'privilges' at line 1' _- ?/ l3 h( {& y$ x; _2 u) P
mysql> flush privileges;" }+ t! e6 n: n3 O$ }
Query OK, 0 rows affected (0.00 sec)2 Y- @8 A6 I9 I( r- q( L. ^

+ |( N4 w# J1 e$ [( e1 D+ Gmysql> 9 u0 j# `$ B5 \( V

5 `% J. X  k: P; J7 J  2009:20241023:074318.691 [Z3001] connection to database 'zabbix' failed: [2059] Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib64/mysql/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory
; s: z4 i% e* b( f0 H. F$ x  2009:20241023:074318.691 Cannot connect to the database. Exiting...8 |+ y# p+ Z/ X; D; z2 Q) G6 G

; C# o# }# Z# ~7 F+ g+ z
* N6 N0 P& e( Z* O# D/ P; K% ]
% A) N. r, c, X
$ Y0 a, m0 i9 L& H# v& N7 j  2063:20241023:074952.930 Starting Zabbix Server. Zabbix 6.4.20 (revision 114e4f42c15).
9 X9 J- V$ X1 m# U- T  2063:20241023:074952.931 ****** Enabled features ******; g. ?! p* u  ?: D) Z6 N9 ~
  2063:20241023:074952.931 SNMP monitoring:           YES
2 q  Z; i5 G, j0 v( O/ v  2063:20241023:074952.931 IPMI monitoring:            NO8 J) I, s" \9 w% X4 b& w
  2063:20241023:074952.931 Web monitoring:             NO
3 ]8 O5 I/ v8 p7 @  X$ ?( R8 I  2063:20241023:074952.932 VMware monitoring:          NO
6 A( Y; \' w% @8 z/ I/ E2 I$ W  2063:20241023:074952.932 SMTP authentication:        NO
! Y* d, c4 q0 d- y" _. m2 t; D' L+ E  2063:20241023:074952.932 ODBC:                       NO
+ d# l# p  x1 e+ t% y: R) l) P  2063:20241023:074952.932 SSH support:                NO/ `) [6 T% {- L; c5 [" `" j
  2063:20241023:074952.932 IPv6 support:               NO% G# P8 o9 k1 l) d% S
  2063:20241023:074952.932 TLS support:                NO
9 l" d/ `3 X/ f% X) p0 `. H  2063:20241023:074952.933 ******************************
+ v( ]" r, s! V" o- C$ s9 ~  2063:20241023:074952.933 using configuration file: /var/lib/zabbix-6-4-20/etc/zabbix_server.conf
, w3 p0 k* w0 k+ S3 A  2063:20241023:074952.938 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)3 f$ \6 k9 H2 s2 S7 ^- L' |9 V
  2063:20241023:074952.938 database is down: reconnecting in 10 seconds  s: z% I6 c4 ]# |: ^  y2 ]' `
  2063:20241023:075002.940 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)
/ P9 N4 A2 e. h! {. a  2063:20241023:075002.941 database is down: reconnecting in 10 seconds
' ~' E' u% Z- g$ {, T8 j$ x  2063:20241023:075012.942 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)8 \' ^5 G9 `5 V9 S/ }* I$ n
  2063:20241023:075012.943 database is down: reconnecting in 10 seconds
. j% c# G. P4 {  2063:20241023:075022.944 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)
: v2 C  z9 O* E/ D  2063:20241023:075022.944 database is down: reconnecting in 10 seconds2 O5 Q6 |2 P6 Q* I! l  p) F) ]! ]
  2063:20241023:075032.946 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)# \& C- }* A2 T, j& w( N4 ]
  2063:20241023:075032.946 database is down: reconnecting in 10 seconds
0 z6 ?" O& }  j6 }  2063:20241023:075042.948 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)% r3 D* _8 L3 t
  2063:20241023:075042.949 database is down: reconnecting in 10 seconds( l, O0 A! S" o+ O3 j9 H: Z
' ~+ o2 Y* N& x* Y, |
 楼主| 发表于 2024-11-23 00:16:12 | 显示全部楼层
cannot be loaded: /usr/lib64/mysql/plugin/caching_sha2_password.so:
1 G$ v4 D* f4 w2 ~; U
: v/ d, W) }4 o8 l' K4 }: \  d
+ j. z! H% @8 P% z5 ^3 ~mysql> alter user 'zabbix'@'localhost' identified with caching_sha2_password  by 'Zabbix123@';
  T3 l6 d, J. r, n$ u" E9 xQuery OK, 0 rows affected (0.02 sec)
% f5 ?. {2 w# Y
' H. j) U0 D/ [. ]mysql> flush privileges;
0 @0 V. `3 z! a) a; L7 @+ z+ fQuery OK, 0 rows affected (0.00 sec)
. w6 g* c& C- i% s7 A
$ t' S0 B" b1 E+ S% p9 X, G( b5 |5 Bmysql> alter user 'zabbix'@'localhost' identified with mysql_native_password  by 'Zabbix123@';5 ?" ]# _% o" z( _$ U
Query OK, 0 rows affected (0.00 sec): C/ F: c: M+ J% f( y

  F; Y! t! R* S- {$ Bmysql> flush privileges;: t: v6 z5 [7 v% V
Query OK, 0 rows affected (0.01 sec)( ~7 K/ }1 ?; t9 L' U0 Y

7 F# A. ?# Q- ^8 zmysql>
  G* F/ Y5 b4 N! m1 _9 [; F
 楼主| 发表于 2024-11-23 00:17:17 | 显示全部楼层
2164:20241023:081631.024 Starting Zabbix Server. Zabbix 6.4.20 (revision 114e4f42c15).1 M5 v( K4 n7 w% |5 W: u
  2164:20241023:081631.025 ****** Enabled features ******0 l6 u- E! {4 \4 Y& k9 ?& P
  2164:20241023:081631.025 SNMP monitoring:           YES
2 g2 ^* K7 j6 e6 c2 d: b  2164:20241023:081631.025 IPMI monitoring:            NO
) }7 a1 Z, u8 k) F  2164:20241023:081631.025 Web monitoring:             NO: m" K+ |( w2 I* i' |
  2164:20241023:081631.025 VMware monitoring:          NO# E6 N0 ^2 l! |& I( R
  2164:20241023:081631.025 SMTP authentication:        NO
& g) W: {3 Z4 Y: C4 O. v  2164:20241023:081631.026 ODBC:                       NO
% Z" t# `6 t7 Q3 O2 X  2164:20241023:081631.026 SSH support:                NO6 T- h/ m$ E) b1 R  B
  2164:20241023:081631.026 IPv6 support:               NO
  l3 \6 U3 L* x) M9 T  2164:20241023:081631.026 TLS support:                NO/ n" y- E9 X7 {1 S" V, Y  i" n
  2164:20241023:081631.026 ******************************
; ]* @0 p8 }- J( @5 o, Y* {  D+ F  2164:20241023:081631.026 using configuration file: /var/lib/zabbix-6-4-20/etc/zabbix_server.conf
# D" W$ ?* o$ K; _  2164:20241023:081631.067 current database version (mandatory/optional): 06040000/06040036
6 N% @, R$ e/ A2 e1 K4 z, A" k  2164:20241023:081631.068 required mandatory version: 06040000. C5 h- m3 i% W: U/ S+ R0 p3 Y
  2165:20241023:081631.118 starting HA manager, Z0 m) C. Y& R6 }' i
  2165:20241023:081631.141 HA manager started in active mode! E* z0 D/ a% f$ k6 R
  2164:20241023:081631.143 server #0 started [main process]7 i& Z9 M5 c2 g5 L: D
  2166:20241023:081631.144 server #1 started [service manager #1]; J$ s# Y% n. D2 C/ e
  2167:20241023:081631.145 server #2 started [configuration syncer #1]
, K- l9 G. Q% y  2168:20241023:081631.947 server #3 started [alert manager #1]' a0 m+ Q( w# H) m: f3 F
  2169:20241023:081631.948 server #4 started [alerter #1]
# g( U- t; E8 N9 [5 \  2170:20241023:081631.948 server #5 started [alerter #2]
, v/ l3 ~+ T. v2 a$ m' @  2171:20241023:081631.950 server #6 started [alerter #3]
; Z3 I0 b- C+ e/ ?  2173:20241023:081631.950 server #8 started [lld manager #1]. O% l* N+ X" `& i+ w2 H2 V
  2172:20241023:081631.951 server #7 started [preprocessing manager #1]. T' W( g, R* c8 h1 X% F+ q" _/ x
  2174:20241023:081631.951 server #9 started [lld worker #1]
$ w  v/ t7 y$ I  2175:20241023:081631.952 server #10 started [lld worker #2]
4 m5 x$ e2 V  J5 _" ~9 J  2177:20241023:081631.954 server #12 started [timer #1]
' d0 h6 f9 v! c# l+ ]% Z  2178:20241023:081631.956 server #13 started [http poller #1]
9 B. X' d! P% U1 _3 `  2179:20241023:081631.957 server #14 started [discoverer #1]
' w% b$ r2 P; y9 k$ |  2185:20241023:081631.961 server #17 started [history syncer #3]& b! [; G5 Z! I* X( H1 a
  2186:20241023:081631.963 server #18 started [history syncer #4]
  ?6 M# x0 F" [4 d7 b4 h) ^, L  2187:20241023:081631.964 server #19 started [escalator #1]% H1 y5 q! S" l
  2188:20241023:081631.966 server #20 started [proxy poller #1]
  @) {1 ]/ |. G( Q  2183:20241023:081631.967 server #16 started [history syncer #2]
0 \2 o" s- n  v( |  2192:20241023:081631.967 server #23 started [poller #1]- q. Y  m8 }, A* e% ^( [+ q4 H8 H
  2176:20241023:081631.968 server #11 started [housekeeper #1]! `% [' ?/ x1 `  g6 X- @
  2194:20241023:081631.970 server #24 started [poller #2]
. t8 @8 Y. Q) w1 V  2195:20241023:081631.972 server #25 started [poller #3]! Q6 W& O' Z5 C& U/ }  m7 g9 d; @
  2198:20241023:081631.975 server #27 started [poller #5]
/ {7 K( Q0 [: u; d* S0 \, W  2189:20241023:081631.975 server #21 started [self-monitoring #1]; I5 F' g4 c6 w, A" l7 L
  2202:20241023:081631.977 server #29 started [trapper #1]
9 p6 P+ i: R) v2 v6 o/ S  2204:20241023:081631.978 server #31 started [trapper #3]
- l+ ^: S, F# k2 r  2207:20241023:081631.980 server #34 started [icmp pinger #1]7 b* o& c/ R) E. U  W9 T
  2182:20241023:081631.981 server #15 started [history syncer #1]4 Y, Q+ m- s$ M1 B1 R, `
  2191:20241023:081631.982 server #22 started [task manager #1]% r6 K. a! i( d# K, B! l3 W) `
  2208:20241023:081631.982 server #35 started [alert syncer #1]
( n4 E0 X  E! U0 a: z: k; ^  2201:20241023:081631.983 server #28 started [unreachable poller #1]6 c3 H5 v7 S2 V
  2209:20241023:081631.984 server #36 started [history poller #1]( P: ^. p3 e8 _0 b' R# C
  2203:20241023:081631.987 server #30 started [trapper #2]
+ @' S! O  X5 A" U  2215:20241023:081631.987 server #38 started [history poller #3]+ |2 z& E9 I. w' r
  2206:20241023:081631.988 server #33 started [trapper #5]
/ i& i- M& J; o, [* ~- {* r" Q  2219:20241023:081631.989 server #40 started [history poller #5]
$ O; ]" I1 H  |5 A6 G9 i  2218:20241023:081631.990 server #39 started [history poller #4]: e6 g, T" o. }2 D
  2205:20241023:081631.990 server #32 started [trapper #4]
8 p- C! a. d- b3 Z) ]' G, P  2221:20241023:081631.992 server #42 started [trigger housekeeper #1]7 _( y9 o+ S/ P. L+ _+ `
  2197:20241023:081631.993 server #26 started [poller #4]/ M5 ?% i  u: J* |6 c
  2210:20241023:081631.994 server #37 started [history poller #2]) X) I0 T; v4 N# K# Z+ S
  2222:20241023:081631.999 server #43 started [odbc poller #1]+ d8 E* q" q8 q- U0 p3 e1 j
  2220:20241023:081632.002 server #41 started [availability manager #1]! h2 }* t$ c! l) M5 k: p" C
  2172:20241023:081632.006 [1] thread started [preprocessing worker #1]9 L2 K' v1 F& d; |/ [3 V2 w7 e
  2172:20241023:081632.008 [2] thread started [preprocessing worker #2]
( C% f  `+ I5 q" ~  2172:20241023:081632.009 [3] thread started [preprocessing worker #3]
7 I. M( L- O. L  n  2194:20241023:081638.016 enabling Zabbix agent checks on host "Zabbix server": interface became available2 d2 {2 r* H0 @
  2185:20241023:081641.010 item "Zabbix server:zabbix[process,ipmi poller,avg,busy]" became not supported: No "ipmi poller" processes started.
7 K" H$ I7 ?1 y+ o( |, x. t  2186:20241023:081642.015 item "Zabbix server:zabbix[process,java poller,avg,busy]" became not supported: No "java poller" processes started.- l1 w2 H9 M# {) C* F; {$ k
  2186:20241023:081647.034 item "Zabbix server:zabbix[process,snmp trapper,avg,busy]" became not supported: No "snmp trapper" processes started.) ~3 r) f$ Y5 ]7 H+ p) d/ o& Z
  2186:20241023:081647.034 item "Zabbix server:zabbix[process,ipmi manager,avg,busy]" became not supported: No "ipmi manager" processes started.5 ]) h0 f( x3 S# S& J2 t8 k; l
  2186:20241023:081647.035 item "Zabbix server:zabbix[connector_queue]" became not supported: connector is not initialized: please check "StartConnectors" configuration parameter
& z& k* d* x3 |1 v  g  2185:20241023:081648.035 item "Zabbix server:zabbix[process,vmware collector,avg,busy]" became not supported: No "vmware collector" processes started.3 [7 {" l, v, j
  2185:20241023:081648.035 item "Zabbix server:zabbix[process,connector manager,avg,busy]" became not supported: No "connector manager" processes started.
0 |9 Q/ Y& C8 F. M/ t  2185:20241023:081649.049 item "Zabbix server:zabbix[process,connector worker,avg,busy]" became not supported: No "connector worker" processes started.: o2 D. E, F2 F; o; g! _5 e4 G; s
  2182:20241023:081655.013 item "Zabbix server:zabbix[vmware,buffer,pused]" became not supported: No "vmware collector" processes started.
2 L) ]+ U; j% l" g  2182:20241023:081658.033 item "Zabbix server:zabbix[process,report writer,avg,busy]" became not supported: No "report writer" processes started.
9 H' U& T% p% I; J, E* r" U2 G  2183:20241023:081659.038 item "Zabbix server:zabbix[process,report manager,avg,busy]" became not supported: No "report manager" processes started.
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:27 , Processed in 0.050682 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表