|
|
php databases support off fail zabbix
% I& i( e( d4 R2 n2 u& x, H# C9 Z! E/ R* L8 M
遇到问题,查询了很多资料都说是php-mysqli这个插件没有装,但后来发现并不是这个没有装,
y3 S, @/ H# n: k# c! F# b
( U8 w" G, H" Z0 n; q解决办法:
' ?/ k4 {7 l. j[root@centos7 modules]# rpm -qa |grep php-mysql9 Q9 [& c" O; b5 R1 Z
php-mysql-5.4.16-48.el7.x86_64; p1 k, c# P6 E. }
[root@centos7 modules]# rpm -e php-mysql-5.4.16-48.el7.x86_64
0 ~. K9 X9 e: E: c9 ]! D- t3 t7 uerror: Failed dependencies:! ~3 T' Q. G3 ~2 {# e; M
php-mysql is needed by (installed) zabbix-web-mysql-3.4.15-1.el7.noarch
) q5 x/ Q: p8 e* ?* q; b3 B& H- f7 p5 i3 ^6 T2 }# j1 U7 a! q2 W( x
( D8 Z! U. `& o; t5 o
[root@centos7 modules]# rpm -e php-mysql-5.4.16-48.el7.x86_64 --nodeps
$ \" }8 Y) ]+ L8 B, y+ N
7 C3 B2 J7 {# N& f Q3 T! W6 q1 N4 J9 ~( P0 E7 D- T4 I% r0 w4 A
[root@centos7 modules]# yum install -y php-mysqlnd.x86_64
& x/ X2 P, b5 v3 g: Z! zLoaded plugins: fastestmirror
: _; ?$ R- N" g% BLoading mirror speeds from cached hostfile
; p; j% o, C) S3 e * base: mirrors.aliyun.com. Z- d) W( f0 F$ F" j- `' b H% ]& V* p
* epel: mirrors.tuna.tsinghua.edu.cn. k+ B0 k* g" V' m6 z4 x7 q6 \$ g
* extras: mirrors.bupt.edu.cn; Z; \" W7 q4 C6 E7 D; B
* updates: mirrors.bupt.edu.cn
- B% Z* m* g, z2 ^0 U" j1 ^' H; AResolving Dependencies
. K& |. u8 f! a; vThere 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).
. M& N& _5 l4 q q3 n# oThe program yum-complete-transaction is found in the yum-utils package.
; d5 b, t1 V4 E& t0 c! h--> Running transaction check9 F$ L* V) j3 |% H6 T) K
---> Package php-mysqlnd.x86_64 0:5.4.16-48.el7 will be installed
0 D; V- G& a, ]) z0 p4 d6 f! Z- z7 |--> Finished Dependency Resolution
2 F( A- i# m+ j& g( U$ m! p4 C% @* k I6 f c
Dependencies Resolved1 ?$ i7 U: P1 d+ H% W- g
& ?# O2 ?8 _+ `- @3 |=================================================================================! l4 t) }, ]/ S5 Q; I# S
Package Arch Version Repository Size
9 ^) z* P' v2 p7 h0 w' A=================================================================================6 w5 {) C/ x9 z
Installing:( V0 M) c [# U/ ?/ {4 {0 ^' B" k( x. s
php-mysqlnd x86_64 5.4.16-48.el7 base 174 k/ a0 K- M. I2 \& N
" o8 `5 f4 c/ P1 K% c
Transaction Summary
2 W0 |' K5 I" S8 G=================================================================================- v9 v/ e: Y3 O. b/ O
Install 1 Package! Y; i$ n; C' W" T4 I. \" X, U
3 o# o6 a- M! \( A0 c& mTotal download size: 174 k, C9 f/ b$ B1 B K# K6 z8 }
Installed size: 461 k
) K0 F/ d- {% ^ |" gDownloading packages:( e+ m7 `& j) d" O' _; s0 X1 i
php-mysqlnd-5.4.16-48.el7.x86_64.rpm | 174 kB 00:00:00
% j! z- N/ @9 f, B% ?/ ?) G9 T( [Running transaction check
; w6 K7 l8 Y( V4 b8 B b& o! jRunning transaction test# \1 y+ h0 D2 L) d, p2 L
Transaction test succeeded
0 C- Y% x9 a, ^) [6 a& r7 jRunning transaction
9 f+ Y" k4 \9 S/ c- `/ _6 ^9 xWarning: RPMDB altered outside of yum.6 `: m- ~ @8 D5 P' L
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:/ C' P4 W# z- d P9 O" U; p
zabbix-web-mysql-3.4.15-1.el7.noarch has missing requires of php-mysql
! o1 ~& S1 [4 H Installing : php-mysqlnd-5.4.16-48.el7.x86_64 1/1
, E7 A) D+ J5 [5 x Verifying : php-mysqlnd-5.4.16-48.el7.x86_64 1/1 ) v7 {4 r7 ?* R7 [# f) Q; E6 A
0 Q3 B& Z5 c! S) \: R0 p- gInstalled:
! M5 B0 |5 [" Q( Q4 ~, t php-mysqlnd.x86_64 0:5.4.16-48.el7
# x1 I/ E+ z$ M. z0 Y
* W' S. `- z1 A9 i3 O# r% CComplete!' ?4 f" D: Q+ M
% B2 p9 \# I1 ]3 S" g3 Q+ Q
$ F5 O A7 i7 [! x- O5 y: I( L$ Q* M' b( R/ E v% `) A/ S# F
[root@centos7 modules]# systemctl restart php-fpm.service , ^4 A5 {4 _3 E: `* q' r1 w
Display all 249 possibilities? (y or n)
: U. b+ _) V# b/ a b$ A/ r[root@centos7 modules]# systemctl restart httpd.service
0 a3 x# i1 O7 M6 D4 x8 |) E6 y0 d1 v7 N9 ?3 s! ^
: T; b! S, n2 u7 D
' I: [: z( y& v! V T2 \
重启这两个服务后,刷新界面:
! O- a; q: x A3 DPHP databases support | MySQL; ~2 b; k6 n" s7 r8 [' j; J( H
| | OK |
( D' _5 B% Z+ a- O& m4 ]; E7 w* ^# m% _
问题既然被解决了。
3 t7 n4 [+ V( @- `+ K m/ f, Z5 P/ P$ G. I' k2 k0 T- o+ o: f
|
|