易陆发现互联网技术论坛

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

php databases support off fail zabbix

[复制链接]
发表于 2022-11-1 23:00:00 | 显示全部楼层 |阅读模式

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

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

x
php databases support off fail zabbix2 q$ M3 {$ ~/ M4 q3 B

) b1 S% \9 h7 k( X! y遇到问题,查询了很多资料都说是php-mysqli这个插件没有装,但后来发现并不是这个没有装,
  N& _, `) E  @& H! a
) S/ D: ], [) H3 G+ m  j3 e解决办法:
. E: O9 Q( @2 w' k- o[root@centos7 modules]# rpm -qa |grep php-mysql
* X' X; }% O5 {; ]* S' ?1 @php-mysql-5.4.16-48.el7.x86_64
0 B4 c) Q! n0 O. c' w+ Z[root@centos7 modules]# rpm -e php-mysql-5.4.16-48.el7.x86_64/ f8 b/ z/ |4 x, @& O
error: Failed dependencies:- X- c0 ]8 r8 L3 e* Y) \2 V+ y
        php-mysql is needed by (installed) zabbix-web-mysql-3.4.15-1.el7.noarch
; N& {. h7 D9 b- g5 L7 q$ h# b- |( ~# @

% Z7 m+ i1 Y  a, b' p[root@centos7 modules]# rpm -e php-mysql-5.4.16-48.el7.x86_64 --nodeps
+ w, _" r2 k. n/ g# J0 p2 \7 y. m
# V& x. q& \( G# o2 b
( j- }; v+ a- z' N6 Y# P[root@centos7 modules]# yum install -y php-mysqlnd.x86_64 ; g+ r2 r: M( i) Z, h: w9 t  h
Loaded plugins: fastestmirror
; ^$ `$ p& E; y% q" g3 p% kLoading mirror speeds from cached hostfile" O  n2 D: B1 C1 ]) h+ `
* base: mirrors.aliyun.com! i$ F# _- i9 U2 k+ \( F% R: V
* epel: mirrors.tuna.tsinghua.edu.cn, W( z) e: |+ M/ I. R( B" \
* extras: mirrors.bupt.edu.cn& J/ S- Z0 ~0 A6 e0 N
* updates: mirrors.bupt.edu.cn8 N) [3 q. K1 Y5 U- V# k+ Z
Resolving Dependencies
/ e  _) F& S$ sThere 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 \/ F' m: W  T, ^/ ~- j' c9 tThe program yum-complete-transaction is found in the yum-utils package.. N  ?9 n3 j. W# i7 p
--> Running transaction check0 X  f- i2 P# w1 Z
---> Package php-mysqlnd.x86_64 0:5.4.16-48.el7 will be installed/ N) |) \& z4 x5 f* A
--> Finished Dependency Resolution9 h2 K7 C2 P7 @( J9 v% S

/ K4 {5 @& q' `/ k+ q' _Dependencies Resolved
$ L: W7 ~( ]: N  e3 U% }8 f" I
8 g- I- X/ Z9 F=================================================================================, ]. c7 v* X. K1 r5 Q
Package              Arch            Version                Repository     Size
7 |6 }0 @. M0 E7 ~- D% o=================================================================================: Q  ?7 R+ u3 D; W
Installing:% Q2 j( l0 K9 C) l2 I/ `) \
php-mysqlnd          x86_64          5.4.16-48.el7          base          174 k7 K0 r& w7 ^! A, v2 `  B
" j- H1 ]1 S$ u/ U  d2 l
Transaction Summary
7 k' b, o# e1 x% |+ q9 P& g! A1 b; K0 ?=================================================================================
3 t5 }8 ~& E! `$ R$ u0 cInstall  1 Package; z0 ~3 Y/ }* [+ V  I
( c* S  S. z: A6 t+ k
Total download size: 174 k% S/ M7 @4 d. p5 c
Installed size: 461 k
& H  Y- [0 y6 A( ?Downloading packages:4 M1 m  P' X+ V" o9 z7 c" K
php-mysqlnd-5.4.16-48.el7.x86_64.rpm                      | 174 kB  00:00:00     6 P2 B! R/ [9 V& O
Running transaction check+ G4 v" [) @  |0 j* ?  h+ v, J
Running transaction test
, m$ u1 P/ s# i% ]; nTransaction test succeeded) X$ G* L* B5 H: _4 y
Running transaction
& }$ d6 u" n* X% |Warning: RPMDB altered outside of yum.
- C, ]- U$ |$ f# |8 H0 |1 o** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
! N4 _" j1 a# P2 V2 D4 fzabbix-web-mysql-3.4.15-1.el7.noarch has missing requires of php-mysql) T6 R9 J* F7 _# \* h5 A1 T- R
  Installing : php-mysqlnd-5.4.16-48.el7.x86_64                              1/1 : d; h' \$ H- o3 J/ |* L
  Verifying  : php-mysqlnd-5.4.16-48.el7.x86_64                              1/1
7 f# Z! U& W8 K& S" w+ }6 L: M8 I  g" d6 q: H: A2 e& n2 z6 [
Installed:+ u: r5 R+ ?% p& e' G1 x
  php-mysqlnd.x86_64 0:5.4.16-48.el7                                             9 z3 c, ]5 d$ o: K" ~, q' n$ v8 \
2 ^, a/ Q' R) T
Complete!
$ {8 B. C9 ^+ b% A
% D5 k3 l7 H$ I( l9 e( v( p- q# g+ u) X8 d& H3 \

! u3 N# D. z% _/ T/ Q: B[root@centos7 modules]# systemctl restart php-fpm.service 0 X4 x; p. c. a3 Z: E/ w
Display all 249 possibilities? (y or n)
# [( V  l6 d* d% H; v4 C3 E0 M  a[root@centos7 modules]# systemctl restart httpd.service
( s# L0 f2 Y, f2 y- f& g( Y- K8 |/ \- V

  u6 F- F! Z: w1 U/ z% E
. D+ _3 C9 \; P0 z- p7 G重启这两个服务后,刷新界面:
, X! o& W# p" f  t2 V: b$ m
PHP databases support
MySQL
* }: W1 d5 r$ [
OK

$ U' L  s! K( [2 }) T1 [. G2 _. Z0 m! c3 c) T3 _
问题既然被解决了。
6 ?9 n, y3 h* X, W* S3 [0 k" B& m
$ e( m# y& b% [2 x8 F. M
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

GMT+8, 2026-4-8 21:38 , Processed in 0.045928 second(s), 24 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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