易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 28|回复: 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  ]  g2 `2 ~+ V% \
  2009:20241023:074318.691 Cannot connect to the database. Exiting...
! I& h" l% t/ w8 ?7 X' M: ]$ [- h

& M9 W2 M9 {8 _% i; C应该是在配置的时候没有执行数据库zabbix用户的配置:. l" D$ T3 j2 L
mysql> alter user 'zabbix'@'localhost' identified with mysql_native_password BY 'Zabbix23@';
+ K- I, o8 E3 U* \- L" qQuery OK, 0 rows affected (0.01 sec)/ Y) u' N# d7 k; p6 A6 r' Q& h4 p
! g4 P+ R( X& S' @3 G
mysql> flush privilges;
1 x4 l0 a9 |$ m* `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 11 E6 }7 m; k3 U9 K/ `. F- r
mysql> flush privileges;! l6 l. _$ j/ a& {+ r' N3 u
Query OK, 0 rows affected (0.00 sec)
, |2 G' X, @; Y9 g* s4 B& g1 V
. D' D% p. A' _0 pmysql> # P& E( a. p/ Q- B! S4 s

1 K( q, V$ C+ ^, @2 {& c# W  ^  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
- B0 J8 H& S% U. M/ z# q& A- C2 H  2009:20241023:074318.691 Cannot connect to the database. Exiting...
/ }! L( N/ s* N4 S4 R% y6 E$ e3 a0 a! w* N5 c9 s# _) B: [8 n: ^

, I1 u4 q5 \& P9 M) B9 }& e! L. S, u# W* A% P  F: M
2 H5 p1 J+ ^. o8 Q+ Q1 q
  2063:20241023:074952.930 Starting Zabbix Server. Zabbix 6.4.20 (revision 114e4f42c15).
) w" j/ g  P. o) Y* e! F$ F- W  2063:20241023:074952.931 ****** Enabled features ******8 x& `. G+ C4 e. y
  2063:20241023:074952.931 SNMP monitoring:           YES
; I4 _/ c4 V, c2 U; }  2063:20241023:074952.931 IPMI monitoring:            NO- _% l% \; y4 l5 K
  2063:20241023:074952.931 Web monitoring:             NO  X& R* D) D$ o5 ^- k6 L7 v
  2063:20241023:074952.932 VMware monitoring:          NO+ p) j; C. I' q7 ^9 I) j
  2063:20241023:074952.932 SMTP authentication:        NO. `) n/ ]4 X  E" Z
  2063:20241023:074952.932 ODBC:                       NO9 O3 |+ C9 B! l* m" _/ x8 h
  2063:20241023:074952.932 SSH support:                NO
% |" Q7 }8 _8 V- c  2063:20241023:074952.932 IPv6 support:               NO9 z. g, M- B5 |! ?
  2063:20241023:074952.932 TLS support:                NO
) E; n3 N3 F, E/ W  2063:20241023:074952.933 ******************************
) ?$ S/ |! M9 e) I, A* y7 u; X  2063:20241023:074952.933 using configuration file: /var/lib/zabbix-6-4-20/etc/zabbix_server.conf
8 M1 ~, x- Z: w  2063:20241023:074952.938 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)4 {8 I' f0 `- C0 _. r9 @* h) d
  2063:20241023:074952.938 database is down: reconnecting in 10 seconds
$ E& j5 D6 N( P0 Y1 t  2063:20241023:075002.940 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)
( E  z% u: {' Q) {1 ]/ ]$ {' l  2063:20241023:075002.941 database is down: reconnecting in 10 seconds
. Z, M; u  T) T: `2 e) B  2063:20241023:075012.942 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)
3 Y5 [) \% \! o  2063:20241023:075012.943 database is down: reconnecting in 10 seconds
) U2 n* {- `' T& \% l  2063:20241023:075022.944 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)
4 K9 O2 A" U5 b: V) h9 v9 V  2063:20241023:075022.944 database is down: reconnecting in 10 seconds) ?3 J* P' k" D& u* l( D# e
  2063:20241023:075032.946 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)
! v6 d6 u; g% r' L  2063:20241023:075032.946 database is down: reconnecting in 10 seconds
1 P; S5 O( Z5 c4 V  2063:20241023:075042.948 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for user 'zabbix'@'localhost' (using password: YES)
8 a7 f) q7 A# H. t  2063:20241023:075042.949 database is down: reconnecting in 10 seconds8 I! W4 I: x; W
# V: b  n& [! }* n6 o& e% E/ {) x
 楼主| 发表于 2024-11-23 00:16:12 | 显示全部楼层
cannot be loaded: /usr/lib64/mysql/plugin/caching_sha2_password.so:, ^* V1 C4 M2 W6 w
3 }8 i' [' ~/ l$ s& [

: ~7 W9 L8 u! R  G9 n3 Umysql> alter user 'zabbix'@'localhost' identified with caching_sha2_password  by 'Zabbix123@';% n; w" Q: K$ t
Query OK, 0 rows affected (0.02 sec)9 ?5 Q9 T# h/ V! a3 o

0 S* w* l/ s  Z! Mmysql> flush privileges;
; j0 _0 d! G! F1 q% b; RQuery OK, 0 rows affected (0.00 sec)
* _, U6 @  c9 P: |- m5 J; o" \' i- o# p' p8 Z4 C. w+ L" J$ @3 [( U
mysql> alter user 'zabbix'@'localhost' identified with mysql_native_password  by 'Zabbix123@';
  H: \7 y+ I, G: U% d  h" DQuery OK, 0 rows affected (0.00 sec)
4 k1 [6 P3 K' {1 s5 F3 J
5 M# D; `0 @" N% M) Fmysql> flush privileges;1 Y' A7 m* r4 u: L/ K- L0 c1 E
Query OK, 0 rows affected (0.01 sec)
8 V8 Y$ k. l3 e! ^7 W+ C4 j8 p* X. r0 r6 u1 A: V8 z9 E; N) c
mysql>
1 f5 r& W% Y2 O9 l" V7 G
 楼主| 发表于 2024-11-23 00:17:17 | 显示全部楼层
2164:20241023:081631.024 Starting Zabbix Server. Zabbix 6.4.20 (revision 114e4f42c15).
# l4 H) W' b& @0 c, I9 g  2164:20241023:081631.025 ****** Enabled features ******
$ j) P. f' v$ ?( Y  2164:20241023:081631.025 SNMP monitoring:           YES( Z& \7 Y+ k% \! P
  2164:20241023:081631.025 IPMI monitoring:            NO
7 n. l  K% M8 I  2164:20241023:081631.025 Web monitoring:             NO
& p5 x3 l, ]$ s5 _1 {- n+ ]  2164:20241023:081631.025 VMware monitoring:          NO3 k0 X0 U6 D' i$ S! R
  2164:20241023:081631.025 SMTP authentication:        NO
  I9 `. R& v5 o, E( Q7 m" K  2164:20241023:081631.026 ODBC:                       NO3 e4 S0 G! `6 D, g
  2164:20241023:081631.026 SSH support:                NO/ B! q' b0 c9 c) B
  2164:20241023:081631.026 IPv6 support:               NO* x/ u, I7 N- }' Z9 O2 P
  2164:20241023:081631.026 TLS support:                NO
# y% w/ g. A  a- @$ G7 P8 E  2164:20241023:081631.026 ******************************
# m5 @* o( L9 ]- R# }) X! _' B  2164:20241023:081631.026 using configuration file: /var/lib/zabbix-6-4-20/etc/zabbix_server.conf
2 u5 W1 Z# z9 F  2164:20241023:081631.067 current database version (mandatory/optional): 06040000/06040036
7 E* ?4 i6 o- ]4 H  2164:20241023:081631.068 required mandatory version: 06040000, `+ a2 ?4 K5 ?3 F4 ^1 J, g
  2165:20241023:081631.118 starting HA manager$ R. l0 r; {5 F' E
  2165:20241023:081631.141 HA manager started in active mode
9 S: u, {5 y! o5 ?  2164:20241023:081631.143 server #0 started [main process]
: l5 N( P' k' B: B% \5 G  2166:20241023:081631.144 server #1 started [service manager #1]
2 |" Z/ y- ^- h2 h! C9 l  2167:20241023:081631.145 server #2 started [configuration syncer #1]# _+ }4 d) z% [8 |3 n3 }" B
  2168:20241023:081631.947 server #3 started [alert manager #1]3 {6 D0 d$ D( I3 C3 V; H
  2169:20241023:081631.948 server #4 started [alerter #1]* ?& N: @- ~5 L1 N
  2170:20241023:081631.948 server #5 started [alerter #2]
( S$ L) }. z! W5 S3 I5 u  2171:20241023:081631.950 server #6 started [alerter #3]$ f1 T; Q; i( ?; J! E
  2173:20241023:081631.950 server #8 started [lld manager #1]( {) _4 m3 L, e' J1 q. h  g
  2172:20241023:081631.951 server #7 started [preprocessing manager #1]) \; Z( f: `4 c) f7 q; [; \$ e5 W
  2174:20241023:081631.951 server #9 started [lld worker #1]3 p% N6 H8 a+ n8 z) ?
  2175:20241023:081631.952 server #10 started [lld worker #2]
0 R$ P( N1 ]! y5 U2 H  2177:20241023:081631.954 server #12 started [timer #1]
- J$ p: T6 R# p7 o/ Y  2178:20241023:081631.956 server #13 started [http poller #1]
% z& q  T# g- a; C  2179:20241023:081631.957 server #14 started [discoverer #1]
! d6 v2 l( J- _- W  |% L  2185:20241023:081631.961 server #17 started [history syncer #3]
, H% T7 L7 K% n  2186:20241023:081631.963 server #18 started [history syncer #4]3 |& e/ x- E5 f" \: W
  2187:20241023:081631.964 server #19 started [escalator #1]& ~" p( ?: t7 C+ r/ H
  2188:20241023:081631.966 server #20 started [proxy poller #1]
3 f' M6 ^* p9 k% |  2183:20241023:081631.967 server #16 started [history syncer #2]
1 j$ [+ a/ Q$ F' E3 K  2192:20241023:081631.967 server #23 started [poller #1]
- K) M& f3 z4 {, v9 k$ T$ F  2176:20241023:081631.968 server #11 started [housekeeper #1]: q( Z' f) d+ S/ X" g( p
  2194:20241023:081631.970 server #24 started [poller #2]
. ]4 M2 Q8 h  r$ G* s  2195:20241023:081631.972 server #25 started [poller #3]" C1 J9 K& \: I3 n) q
  2198:20241023:081631.975 server #27 started [poller #5]3 D) q5 T- ?) j( P
  2189:20241023:081631.975 server #21 started [self-monitoring #1]; F0 q: t# i; i) Z
  2202:20241023:081631.977 server #29 started [trapper #1]
9 I0 D% r( y/ u# K) [% D! n  2204:20241023:081631.978 server #31 started [trapper #3]
. ^1 I9 ?9 t9 [+ b6 F5 c+ k" s9 W7 [  2207:20241023:081631.980 server #34 started [icmp pinger #1]
' P' [- d3 T6 o1 b  2182:20241023:081631.981 server #15 started [history syncer #1]
  k% Y; h3 g! k  v" T5 p  2191:20241023:081631.982 server #22 started [task manager #1]( _, g- f- k; |, r
  2208:20241023:081631.982 server #35 started [alert syncer #1]
; L. K( t/ Y9 r1 x3 C8 V  2201:20241023:081631.983 server #28 started [unreachable poller #1]# ~% S) W" g8 E) h
  2209:20241023:081631.984 server #36 started [history poller #1]
8 {9 B2 I2 Q# L, t  2203:20241023:081631.987 server #30 started [trapper #2]- m  u" ~0 P. ?7 g# Q) k0 r( y( g
  2215:20241023:081631.987 server #38 started [history poller #3]" c& r. o+ x% }# u
  2206:20241023:081631.988 server #33 started [trapper #5]
4 \( q" d8 o, i6 J' O/ v; m  2219:20241023:081631.989 server #40 started [history poller #5]
1 C) f+ v8 e" _6 O* |  2218:20241023:081631.990 server #39 started [history poller #4]4 A3 t( S5 o: W' C2 x1 j
  2205:20241023:081631.990 server #32 started [trapper #4]3 ~% @7 b1 u0 L! }. [( h
  2221:20241023:081631.992 server #42 started [trigger housekeeper #1]
) f# ^0 h* g, m0 x8 t5 Q  2197:20241023:081631.993 server #26 started [poller #4]5 I4 `0 T  x1 m9 E( o
  2210:20241023:081631.994 server #37 started [history poller #2]
' R( ?9 W* X& A: y7 [: X' K6 {. f  2222:20241023:081631.999 server #43 started [odbc poller #1]
5 W) t1 ^& X, @9 u  2220:20241023:081632.002 server #41 started [availability manager #1]
" V9 H, o  c0 h. y: z$ D  2172:20241023:081632.006 [1] thread started [preprocessing worker #1]
# f9 Y8 n" _6 e5 \& u  2172:20241023:081632.008 [2] thread started [preprocessing worker #2]% y3 v/ h2 \9 `% g
  2172:20241023:081632.009 [3] thread started [preprocessing worker #3]
: U1 `, h: n2 p# Z' t( W9 q4 |  2194:20241023:081638.016 enabling Zabbix agent checks on host "Zabbix server": interface became available( \" l) r8 B7 @# G/ y% V
  2185:20241023:081641.010 item "Zabbix server:zabbix[process,ipmi poller,avg,busy]" became not supported: No "ipmi poller" processes started.
$ z1 ^5 Z5 @5 f  2186:20241023:081642.015 item "Zabbix server:zabbix[process,java poller,avg,busy]" became not supported: No "java poller" processes started.! G! d' B- m' A& G1 k7 r* F
  2186:20241023:081647.034 item "Zabbix server:zabbix[process,snmp trapper,avg,busy]" became not supported: No "snmp trapper" processes started.
4 c) h1 N2 S* @  2186:20241023:081647.034 item "Zabbix server:zabbix[process,ipmi manager,avg,busy]" became not supported: No "ipmi manager" processes started.; z& x/ R, h8 {/ }3 q
  2186:20241023:081647.035 item "Zabbix server:zabbix[connector_queue]" became not supported: connector is not initialized: please check "StartConnectors" configuration parameter
1 v2 e1 K. r. i1 h/ A% ^/ l  2185:20241023:081648.035 item "Zabbix server:zabbix[process,vmware collector,avg,busy]" became not supported: No "vmware collector" processes started.
  N: {6 x/ I; D% k, p  X% K  2185:20241023:081648.035 item "Zabbix server:zabbix[process,connector manager,avg,busy]" became not supported: No "connector manager" processes started.
! e* P5 l& }3 t  X0 ]9 H2 T  2185:20241023:081649.049 item "Zabbix server:zabbix[process,connector worker,avg,busy]" became not supported: No "connector worker" processes started.
6 O  Y' R4 ^* S3 D% a% K* J" D  2182:20241023:081655.013 item "Zabbix server:zabbix[vmware,buffer,pused]" became not supported: No "vmware collector" processes started.  e2 R2 ^' |% X( ]4 _- a+ I5 C
  2182:20241023:081658.033 item "Zabbix server:zabbix[process,report writer,avg,busy]" became not supported: No "report writer" processes started.1 \% l' M; D5 }8 Q0 J2 _
  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-9 00:01 , Processed in 0.053311 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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