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

php databases support off fail zabbix

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-11-1 23:00:00 | 显示全部楼层 |阅读模式
php databases support off fail zabbix( \9 G  u4 W( i" ^$ G. U$ h3 D+ _4 s* q
) Z2 l9 u) M# d( s
遇到问题,查询了很多资料都说是php-mysqli这个插件没有装,但后来发现并不是这个没有装,1 c2 g( m! \( T# ^: K4 z, T

' D+ u6 }  ?5 q9 X  g* I解决办法:5 i4 r  \7 }& G! G5 y" K& @( s
[root@centos7 modules]# rpm -qa |grep php-mysql4 D% L4 ?5 P- h* l2 C1 @3 g# B5 Z
php-mysql-5.4.16-48.el7.x86_645 P8 B. `6 l: X5 W# x, S
[root@centos7 modules]# rpm -e php-mysql-5.4.16-48.el7.x86_64
7 p5 D: `# a0 c. qerror: Failed dependencies:
. y6 d$ V) H, j* v' [9 L0 g/ E+ x        php-mysql is needed by (installed) zabbix-web-mysql-3.4.15-1.el7.noarch
: u& Y7 _/ B  m$ ]. X; Y$ x
8 t3 K0 l7 T+ |
2 b: G1 ~$ m: i( M[root@centos7 modules]# rpm -e php-mysql-5.4.16-48.el7.x86_64 --nodeps
/ T, |! S# B- Q& W3 e7 Z0 s- ^& }0 ?# Q! k9 E3 M8 Z7 ?
4 ~' n# l$ v7 s6 d  J
[root@centos7 modules]# yum install -y php-mysqlnd.x86_64
& Z4 {& v  I' g8 k* @0 DLoaded plugins: fastestmirror
( M2 w& p! x( n9 k! j7 pLoading mirror speeds from cached hostfile  w6 ?! f+ U. J5 p7 v
* base: mirrors.aliyun.com
' y+ x! o4 s7 S; z( t* s * epel: mirrors.tuna.tsinghua.edu.cn2 h+ Y4 {7 b, c& J6 F# |+ p
* extras: mirrors.bupt.edu.cn0 v( W6 O' F$ p  q% w
* updates: mirrors.bupt.edu.cn5 G" x# B1 w5 \. Y, i# n
Resolving Dependencies
( n% v# u/ i/ q3 T6 T; PThere 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).1 ~0 }+ }' E6 P, q6 k0 {$ C
The program yum-complete-transaction is found in the yum-utils package.- B9 j- ?0 E3 M7 m, G
--> Running transaction check
# W" _" r" a+ A. _---> Package php-mysqlnd.x86_64 0:5.4.16-48.el7 will be installed0 q8 M% O* X: h
--> Finished Dependency Resolution
7 _( P8 w3 K0 Y7 o2 a" U& I9 t* _- M% h2 l+ }
Dependencies Resolved
: ~" s& q+ A1 C; u& \) T
% M+ c9 P& v8 M8 d) R" _=================================================================================
0 ~! I8 P7 l' D0 q Package              Arch            Version                Repository     Size
. Q2 a8 y& o9 |=================================================================================
) c7 ^0 p/ {. D$ x) GInstalling:
% {6 h9 i1 q3 S5 I7 ? php-mysqlnd          x86_64          5.4.16-48.el7          base          174 k
6 g5 k7 I9 U# `. j2 ]# ?" e! ]4 d
0 s1 s" X& U0 Y. |) zTransaction Summary
& `8 A7 ]# e( z9 O' S1 Q- n7 q=================================================================================
3 S& H' ?* {9 f! k' ~! }! W; A8 M! @Install  1 Package
: I! `2 q* i  j
' {6 W4 r8 e& V$ ^8 ]. ATotal download size: 174 k
0 [' B9 H/ I# t. \" j+ X* u0 YInstalled size: 461 k* d) g  o3 x- U4 J8 N0 S1 s
Downloading packages:* e5 M( b. J9 q5 b; e
php-mysqlnd-5.4.16-48.el7.x86_64.rpm                      | 174 kB  00:00:00     
( S9 Z2 D, l# f3 b. J0 i; GRunning transaction check
8 o; O$ B4 S- RRunning transaction test3 w9 h2 n( g% ^( F, H" Y; O
Transaction test succeeded
+ D8 _2 R! y9 z( |Running transaction
2 O% b" A; l. w* `+ mWarning: RPMDB altered outside of yum.. x, |* K9 S+ d: r* C2 D
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:. w* |3 j7 C4 `1 M) i! M" c  k
zabbix-web-mysql-3.4.15-1.el7.noarch has missing requires of php-mysql9 b1 r1 w& R% |2 ~- I- `" m
  Installing : php-mysqlnd-5.4.16-48.el7.x86_64                              1/1 : ~* O4 w4 T" ^6 K
  Verifying  : php-mysqlnd-5.4.16-48.el7.x86_64                              1/1
% P& V& G0 l) f; Q
0 M; r% p6 s! U$ b9 I% oInstalled:$ x6 N6 T( W/ |
  php-mysqlnd.x86_64 0:5.4.16-48.el7                                             % C& X. x7 P; H
1 K* g* {1 e/ o3 G1 U
Complete!
& l0 i+ z  I* d! Y0 F
  k( p# S& m1 R7 Z9 x* B9 }7 b; W+ q4 u2 m, x% R# }! r# R
! E: C5 j/ y* `4 [3 j3 _+ b
[root@centos7 modules]# systemctl restart php-fpm.service
9 F+ p0 U/ @/ r. g7 ~Display all 249 possibilities? (y or n)/ u- L( F, @* x
[root@centos7 modules]# systemctl restart httpd.service 5 A6 N  p8 X7 ^1 p: F

" U3 S+ p& v( y/ _% V
# ~( }, {6 U- a% @& L. I: ^3 N( p
重启这两个服务后,刷新界面:% N7 C& P  r2 B$ T- c
PHP databases support
MySQL
" F6 v4 r0 P1 B% _; I
OK
6 e+ t9 v" R* e
+ @" f% v, F! s  W3 p$ K, o5 O
问题既然被解决了。) c4 k; @# c' M( W9 @7 n
; z) {4 D8 U# o: X
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 03:23 , Processed in 0.016063 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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