找回密码
 注册
查看: 399|回复: 0

php databases support off fail zabbix

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-11-1 23:00:00 | 显示全部楼层 |阅读模式
php databases support off fail zabbix
8 Y- m6 p7 ?* R* S" W9 ~+ n& t5 g" E8 ]# j- f- l" H4 U
遇到问题,查询了很多资料都说是php-mysqli这个插件没有装,但后来发现并不是这个没有装,
1 |* f7 h( P5 |$ f# I# ?. X6 r# A) U7 J
解决办法:
" ]6 X1 G/ M; T7 {' E; H" p# j[root@centos7 modules]# rpm -qa |grep php-mysql
2 x, Y7 B7 [, i: ^: X. gphp-mysql-5.4.16-48.el7.x86_64. q5 K( i% T% v" F) f
[root@centos7 modules]# rpm -e php-mysql-5.4.16-48.el7.x86_64+ q9 \& x) }/ s$ L& l
error: Failed dependencies:
1 F4 w( K  L6 u! b+ b; z4 z        php-mysql is needed by (installed) zabbix-web-mysql-3.4.15-1.el7.noarch
. T: N# p$ D8 b1 s, G( {- f2 Z+ ~2 @; x" y2 n! X, k# K2 W' c$ z6 v3 _* Q
6 u. Y0 r% G2 q: Z8 S1 n! E7 d
[root@centos7 modules]# rpm -e php-mysql-5.4.16-48.el7.x86_64 --nodeps
. h! Q/ y9 s8 r9 z# L4 E1 ^- w: Q: }9 e1 P5 _
3 E. I! J1 O, p, ^5 ~
[root@centos7 modules]# yum install -y php-mysqlnd.x86_64
" e2 C- a. }  c2 q0 G1 i* w' |% RLoaded plugins: fastestmirror& U1 C- [5 D0 R# x
Loading mirror speeds from cached hostfile
: Y% e1 p- `5 N' f * base: mirrors.aliyun.com  N; W: h: ?3 k8 O1 G4 i- ?7 K# D
* epel: mirrors.tuna.tsinghua.edu.cn- j# h: H* H. q) f( ?# I; c' s: K
* extras: mirrors.bupt.edu.cn% b+ i, A$ _& F/ T8 q% _0 Q3 e
* updates: mirrors.bupt.edu.cn
* p- n5 i7 r! v3 |Resolving Dependencies  w, v( i' z2 m! s8 Y& V# \- u
There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).
2 s2 q' r) P: G% `; M) F' tThe program yum-complete-transaction is found in the yum-utils package.
' j% n. O" b  I: w3 D5 ]. G' U" H1 T--> Running transaction check
+ M1 v% E7 `4 N- M/ F( h---> Package php-mysqlnd.x86_64 0:5.4.16-48.el7 will be installed; z1 n" a1 T8 I# Q1 j' n/ @7 X
--> Finished Dependency Resolution0 ~# j* S7 t" Q
; h9 Q& H0 M  S8 K" Z" ?: B# P
Dependencies Resolved
  j+ L( l7 a9 z) v
' v  `9 G& u8 ]=================================================================================
2 c4 m" T: F2 M( H Package              Arch            Version                Repository     Size
# u& B( T  e% w6 f=================================================================================/ m" K: i0 n4 q7 ?7 M
Installing:
2 z/ D  ]6 X6 a  C- u" q php-mysqlnd          x86_64          5.4.16-48.el7          base          174 k
" B1 |4 E4 I' R
" B0 D+ Z# S, p. C% E8 a# `Transaction Summary
  ^, ?& v/ a: ~. e+ ?=================================================================================; t1 q% k, I3 n
Install  1 Package
. j9 n; M  l. V: D; f  z% a8 o! p+ U7 ?/ ^
Total download size: 174 k
3 m- F8 c3 N3 ]0 g) q8 [" e8 vInstalled size: 461 k/ l; Z. u9 y0 x% P( P( H9 T: n4 f7 J
Downloading packages:: N* T' }; I1 _6 e6 z1 z6 f
php-mysqlnd-5.4.16-48.el7.x86_64.rpm                      | 174 kB  00:00:00       e& k# u6 U- B' _
Running transaction check
. |: a% W: F) o$ ]; N! WRunning transaction test
' m& F; V9 }- bTransaction test succeeded4 M) S: n8 O& N7 y, O, Z6 K
Running transaction
/ Z1 K2 }: O- b3 xWarning: RPMDB altered outside of yum.
3 B" \$ X6 _  y' F' L4 x& p& Q** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
8 Z8 R. P2 t3 Dzabbix-web-mysql-3.4.15-1.el7.noarch has missing requires of php-mysql
" A& C+ S7 K4 x  Installing : php-mysqlnd-5.4.16-48.el7.x86_64                              1/1
$ j- l/ x( k& o: t) k1 [# y, v0 b  Verifying  : php-mysqlnd-5.4.16-48.el7.x86_64                              1/1
) J% d0 a4 N2 Q! D3 j- `$ v( ^: ]8 d6 c' Y* @. ], _! r; q
Installed:5 G4 ?0 W6 Y, L
  php-mysqlnd.x86_64 0:5.4.16-48.el7                                             
' A$ U7 j. w: T7 z  q- K
: l1 Y; q& J; L: \+ nComplete!2 h9 T. {7 @. k2 b

7 F$ _8 L5 B5 n- A3 c) J" Z; L
6 u) {. @5 l. V5 F# H
/ y. [2 T" Z% o) @7 ^- s[root@centos7 modules]# systemctl restart php-fpm.service 7 G  k8 \$ y1 @" ^. [
Display all 249 possibilities? (y or n); p5 N- t; `2 ~
[root@centos7 modules]# systemctl restart httpd.service
6 v+ f: c4 Q" k$ g7 {2 F" I$ c+ q5 g2 f4 d
4 s& `" N- D: l5 }; t" g3 T2 ~

5 J7 q. p/ z+ `) i. ^重启这两个服务后,刷新界面:+ {  {6 k9 r6 l1 f" e4 ^
PHP databases support
MySQL- Z' z0 O/ M7 }& k$ a
OK

' d; [! V$ n2 h. W- Y# C$ h0 ^% a0 f; w0 n% U$ \
问题既然被解决了。8 [2 c$ J% c9 ~; U. i: G

/ M3 }5 P/ H7 E% ?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 05:31 , Processed in 0.023607 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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