mysql_connect(): Headers and client library minor version mismatch. Headers:

[root@localhost session]# 
[root@localhost session]# php -i|grep Client
IMAP c-Client Version => 2007f
Client API library version => 5.6.49
Client API header version => 5.5.65-MariaDB
Client API version => 5.6.49
Soap Client => enabled
[root@localhost session]# service php-fpm stop
Redirecting to /bin/systemctl stop php-fpm.service
Failed to stop php-fpm.service: Unit php-fpm.service not loaded.
[root@localhost session]# ps -ef | grep php
root      3982  1894  0 13:15 pts/0    00:00:00 grep --color=auto php
[root@localhost session]# service php-fpm stop 
Redirecting to /bin/systemctl stop php-fpm.service
Failed to stop php-fpm.service: Unit php-fpm.service not loaded.
[root@localhost session]# ps -ef | grep fpm
root      4020  1894  0 13:17 pts/0    00:00:00 grep --color=auto fpm
[root@localhost session]# 
[root@localhost session]# 
[root@localhost session]# ps -ef | grep fpm
root      4022  1894  0 13:17 pts/0    00:00:00 grep --color=auto fpm
[root@localhost session]# yum remove php72w-mysql
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package php72w-mysql.x86_64 0:7.2.34-1.w7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================================
 Package                                        Arch                                     Version                                          Repository                                   Size
============================================================================================================================================================================================
Removing:
 php72w-mysql                                   x86_64                                   7.2.34-1.w7                                      @webtatic                                   350 k

Transaction Summary
============================================================================================================================================================================================
Remove  1 Package

Installed size: 350 k
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : php72w-mysql-7.2.34-1.w7.x86_64                                                                                                                                          1/1 
  Verifying  : php72w-mysql-7.2.34-1.w7.x86_64                                                                                                                                          1/1 

Removed:
  php72w-mysql.x86_64 0:7.2.34-1.w7                                                                                                                                                         

Complete!
[root@localhost session]# yum install php72w-mysqlnd
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.huaweicloud.com
 * epel: ftp.iij.ad.jp
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.huaweicloud.com
 * webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php72w-mysqlnd.x86_64 0:7.2.34-1.w7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================================
 Package                                          Arch                                     Version                                         Repository                                  Size
============================================================================================================================================================================================
Installing:
 php72w-mysqlnd                                   x86_64                                   7.2.34-1.w7                                     webtatic                                   198 k

Transaction Summary
============================================================================================================================================================================================
Install  1 Package

Total download size: 198 k
Installed size: 858 k
Is this ok [y/d/N]: y
Downloading packages:
php72w-mysqlnd-7.2.34-1.w7.x86_64.rpm                                                                                                                                | 198 kB  00:00:08     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : php72w-mysqlnd-7.2.34-1.w7.x86_64                                                                                                                                        1/1 
  Verifying  : php72w-mysqlnd-7.2.34-1.w7.x86_64                                                                                                                                        1/1 

Installed:
  php72w-mysqlnd.x86_64 0:7.2.34-1.w7                                                                                                                                                       

Complete!
[root@localhost session]# php -i|grep Client
IMAP c-Client Version => 2007f
Client API library version => mysqlnd 5.0.12-dev - 20150407 - $Id: 3591daad22de08524295e1bd073aceeff11e6579 $
Client API version => mysqlnd 5.0.12-dev - 20150407 - $Id: 3591daad22de08524295e1bd073aceeff11e6579 $
Soap Client => enabled
[root@localhost session]# systemctl restart mysqld
[root@localhost session]# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
[root@localhost session]# 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值