|
|
php databases support off fail zabbix* z% S9 I& r1 W& ~. X
: G7 f9 K/ K* M; T; n9 O
遇到问题,查询了很多资料都说是php-mysqli这个插件没有装,但后来发现并不是这个没有装,
- o4 X1 H4 F9 J! R1 t8 K" i- f. n6 S" b& A, b4 n
解决办法:
/ `, y7 @2 U- y( t8 j/ d2 f[root@centos7 modules]# rpm -qa |grep php-mysql
- z8 @& f$ l. ]php-mysql-5.4.16-48.el7.x86_64
5 h% z- T1 F# R- x& l[root@centos7 modules]# rpm -e php-mysql-5.4.16-48.el7.x86_64
2 ]9 l c7 @# ?. C- I; B9 u' A5 m+ Aerror: Failed dependencies:9 f3 j9 d2 }: V
php-mysql is needed by (installed) zabbix-web-mysql-3.4.15-1.el7.noarch* \, N# B! M! A4 R' j6 r2 u
C; [6 W9 q& R4 s9 o0 H6 d* c, r l: R: S" s# i5 S2 M8 e
[root@centos7 modules]# rpm -e php-mysql-5.4.16-48.el7.x86_64 --nodeps M; [) t( o- V7 z3 G$ k$ G- ]: R
: F8 C7 u$ i: B: T
. q1 B3 I/ W# O8 R! z
[root@centos7 modules]# yum install -y php-mysqlnd.x86_64 2 v' m" o$ N6 z: l. c; p4 D
Loaded plugins: fastestmirror1 f1 T2 D+ ? V7 `4 o
Loading mirror speeds from cached hostfile8 O6 g+ g+ d, R) t& X" R
* base: mirrors.aliyun.com' \8 a7 g+ s3 S, [2 R/ f
* epel: mirrors.tuna.tsinghua.edu.cn3 B: S( |. V3 ^$ p6 m6 v
* extras: mirrors.bupt.edu.cn
8 K! R- ~) H; @7 a @1 N8 s * updates: mirrors.bupt.edu.cn
# [& C3 _% f, s# ]) u- DResolving Dependencies# A: l' z& y [8 J+ x! k! d0 J
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).
( {, q6 |2 o U5 c, i! CThe program yum-complete-transaction is found in the yum-utils package.; Q R4 L- w) E5 k( y
--> Running transaction check
( X( A V' [' u; ^% x5 {, G( A/ T; D; R---> Package php-mysqlnd.x86_64 0:5.4.16-48.el7 will be installed
4 v) X* B+ h0 J3 f1 p! X--> Finished Dependency Resolution
3 g; U6 y0 @! t% A* {
|% D7 P; {2 a0 L ^5 aDependencies Resolved
, D/ ^( m- R+ I5 y- e' {2 w" Y* w$ m
=================================================================================2 o. z) R- [! l6 F
Package Arch Version Repository Size4 x1 ]; `/ o6 T, X8 m+ X
=================================================================================8 g! H a9 `1 B4 f
Installing:! t* V5 c" j3 y
php-mysqlnd x86_64 5.4.16-48.el7 base 174 k* K1 y# T- x8 y0 a6 q$ [
, t% S6 e7 e% W l3 Z5 c3 WTransaction Summary4 K# u4 u! Y* j3 r. g; H- v
=================================================================================
/ J; k/ p- H% pInstall 1 Package4 Q( Y1 I: q6 p6 w5 @
$ [+ G1 T3 g$ e( V
Total download size: 174 k
! l, V% L: V/ F, _ RInstalled size: 461 k
w5 c2 ^) ]6 ?3 B+ n. G- IDownloading packages:3 ~' n6 U& f8 L
php-mysqlnd-5.4.16-48.el7.x86_64.rpm | 174 kB 00:00:00
. E6 ~* k& L( X! Z* X2 ?% ZRunning transaction check
# V L0 j0 x9 t. ?$ z- CRunning transaction test
5 r8 H; u* ?. n, F/ ITransaction test succeeded8 \( _0 a5 s/ j2 \6 j
Running transaction
& _7 c3 Y1 h& K+ G6 c6 tWarning: RPMDB altered outside of yum.
' l3 o0 f) K" e. j( r, U( o8 k** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:, B0 @1 c2 B- c- C0 g
zabbix-web-mysql-3.4.15-1.el7.noarch has missing requires of php-mysql
1 Z8 ~6 M5 O0 @ Installing : php-mysqlnd-5.4.16-48.el7.x86_64 1/1
; r4 m- g1 j( H4 Q6 ]; @" y# W. k Verifying : php-mysqlnd-5.4.16-48.el7.x86_64 1/1
8 Y. v) K4 A4 b2 A9 O) V# T
s& g) l. ^7 P! uInstalled:
" M' e. R9 K: Z: K- Z php-mysqlnd.x86_64 0:5.4.16-48.el7 8 a& F5 ?4 u& V6 ]
5 {( F( |3 T3 B: `) [" kComplete!
0 y- |, p2 A! i2 G/ y/ Q# B8 r2 a: d; z% ]0 a7 q7 N
: t7 Z$ S& w" D# s3 L
1 G' y! K' X1 p, U( e
[root@centos7 modules]# systemctl restart php-fpm.service
6 D; w6 [; N- f- |/ ADisplay all 249 possibilities? (y or n)5 B. Y, E/ X+ B0 B
[root@centos7 modules]# systemctl restart httpd.service , |. y5 D3 u3 K6 c! X7 T
5 U( j. d* |6 J3 _ Q
9 t0 e8 }, a8 X6 u& M; [
+ r& [4 Q7 S! t' E- A$ p/ b i2 \5 M重启这两个服务后,刷新界面:* r3 _/ k" _9 d2 b# F' U6 S8 o
PHP databases support | MySQL8 M" B4 b+ Q7 a1 r+ E8 E y6 U
| | OK | " R. R" ], V- A( v+ t
# x3 H, M4 @7 A$ V
问题既然被解决了。
" L- {# w" z+ d$ S6 v% k& M
, D" |' u* c, N1 P* d+ v |
|