- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
php databases support off fail zabbix
5 ]" ?+ ]; P6 [1 C) {
1 z0 h8 s0 \+ O0 D5 `$ v. w遇到问题,查询了很多资料都说是php-mysqli这个插件没有装,但后来发现并不是这个没有装,
6 H+ f9 A2 x9 x8 q, ?& r! l3 {( { i' w% `6 x( k f2 j
解决办法:- G. d2 E) l, D- h3 b. ?) x! D
[root@centos7 modules]# rpm -qa |grep php-mysql
4 W5 n$ H7 h# R7 U* H4 Z$ r/ pphp-mysql-5.4.16-48.el7.x86_64
1 H* W8 j- C+ I/ e0 T/ M5 ]$ {[root@centos7 modules]# rpm -e php-mysql-5.4.16-48.el7.x86_64- L, O$ k( B+ a4 z' L+ }
error: Failed dependencies:
$ Z* w$ V) i5 f* G php-mysql is needed by (installed) zabbix-web-mysql-3.4.15-1.el7.noarch) q% L* E( x# z) A( W* K6 e
$ n, ]" G {2 d3 H# ] w
; m0 h0 F$ l' `+ T( S[root@centos7 modules]# rpm -e php-mysql-5.4.16-48.el7.x86_64 --nodeps
5 `% Q$ U: y+ Z7 d) T2 Y) y P
& B+ l! @. a( t; V
$ G* f# b0 R2 x) g# N E! i[root@centos7 modules]# yum install -y php-mysqlnd.x86_64
4 v/ \4 `7 b! n) c( {Loaded plugins: fastestmirror' W7 w h( D. T: h( s6 i5 k. j
Loading mirror speeds from cached hostfile
' u8 C: v1 ]& U * base: mirrors.aliyun.com1 ?* [* l6 z: `+ g: x, ~# f3 ^
* epel: mirrors.tuna.tsinghua.edu.cn
+ u* w, Q/ x' T: K * extras: mirrors.bupt.edu.cn7 d/ S% s `# O) K
* updates: mirrors.bupt.edu.cn$ z |0 I6 N# [/ ^# `$ ?' q. L1 ?
Resolving Dependencies
$ B7 s4 g1 j, w) w( 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).3 S4 Q% p% ?$ Q9 n! x
The program yum-complete-transaction is found in the yum-utils package.
5 k1 @* x2 O. T--> Running transaction check
3 y$ h+ o1 k) g. I& j0 y q---> Package php-mysqlnd.x86_64 0:5.4.16-48.el7 will be installed$ k" n/ u$ h, X0 R
--> Finished Dependency Resolution
" |/ |3 V( R- T) `( \
$ P4 B/ W2 s% b8 BDependencies Resolved) Z; T" O+ {0 b3 m+ x2 N& }2 F
" c" A% \% y, M' b+ I=================================================================================
8 b2 _5 V$ X5 n0 q. x c Package Arch Version Repository Size
; D1 ^1 O+ w! `7 ^- M1 Q1 h=================================================================================
# S3 P% r) }( A r" i bInstalling:4 g* a7 S. j/ Y$ `
php-mysqlnd x86_64 5.4.16-48.el7 base 174 k4 ^% n/ M+ S% Q) }/ Q
) H3 a+ M9 M# v% a3 [Transaction Summary) |" K- g& w/ D7 g/ c$ S
=================================================================================
+ c1 a( o/ U( X) _: Y' ~8 RInstall 1 Package e( V$ \4 |4 w' q
6 }$ `$ c) F& {Total download size: 174 k
. g+ x1 Q' T& nInstalled size: 461 k
/ A( W- a% P' _ h/ EDownloading packages:8 D. P) ^3 c" T- L. h! `& z% E
php-mysqlnd-5.4.16-48.el7.x86_64.rpm | 174 kB 00:00:00 / b* o7 c- i; f: R) \5 g" b: ^
Running transaction check/ g+ h, i7 ~* \, K, i4 _) K
Running transaction test
5 Z% D/ X! b, K# h4 cTransaction test succeeded
, o7 E9 {" j) {6 L" o% fRunning transaction
; A8 Y* N1 E3 ]; CWarning: RPMDB altered outside of yum.
! q) o! ]. \# _2 j' G5 b** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:- Q( {2 g0 [0 y. P2 h' K
zabbix-web-mysql-3.4.15-1.el7.noarch has missing requires of php-mysql
. @' \7 O: w" {; q1 T- ^4 g9 a7 @ Installing : php-mysqlnd-5.4.16-48.el7.x86_64 1/1 , f1 j5 Y2 P7 a4 M# X' _% a( l
Verifying : php-mysqlnd-5.4.16-48.el7.x86_64 1/1
8 j6 T$ d3 Z, L* u6 m8 ^- r3 p& d: ?/ j% k, P( E& R4 `
Installed:5 p; b ^. K! N, s" m
php-mysqlnd.x86_64 0:5.4.16-48.el7
: }* p2 G0 @" h, @
* G7 @3 R! m/ Y X; a' JComplete!
" k C9 t' M! J8 G5 ~$ x" L: ?$ o& u' u; L: Y
& U$ _7 H7 H; T; \9 T, [0 i8 T
" F6 t) x$ t/ [% O; S[root@centos7 modules]# systemctl restart php-fpm.service - U5 ]1 n3 n& H5 X
Display all 249 possibilities? (y or n)) z* N9 H6 l. B; W. f
[root@centos7 modules]# systemctl restart httpd.service d; T; |" k; M
' y/ E/ A- ^3 O! P
1 _) q3 I* O2 [5 U% V+ V) _6 V1 N& `
6 k; G# m* d3 ^6 M重启这两个服务后,刷新界面:
8 g x' P% A. ?$ y" i- CPHP databases support | MySQL
7 g2 j) q/ D. u( S: a y7 Y6 B | | OK | ) i# L* K, N/ N S o3 w' v
7 z x$ w) K3 r) ?0 ]: a7 S' c2 C( Q
问题既然被解决了。
7 `- S3 A5 _) x% a1 B' q
0 a) ?5 N) s- S |
|