我刚刚删除了所有 php 和 mysql,然后重新安装它。但在 PHPMyadmin 中我仍然得到:
Your PHP MySQL library version 5.1.69 differs from your MySQL server version 5.5.39. This may cause unpredictable behavior.
以下是我的完整规格列表:
[root@**** ~]# php -v
PHP 5.4.31 (cli) (built: Jul 25 2014 07:41:53)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
[root@***** ~]# rpm -qa | grep php
php54w-5.4.31-1.w6.x86_64
php54w-xml-5.4.31-1.w6.x86_64
php54w-mcrypt-5.4.31-1.w6.x86_64
php54w-mysql-5.4.31-1.w6.x86_64
php-tcpdf-dejavu-sans-fonts-6.0.089-1.el6.noarch
php54w-cli-5.4.31-1.w6.x86_64
php54w-mbstring-5.4.31-1.w6.x86_64
php-php-gettext-1.0.11-3.el6.noarch
php54w-pdo-5.4.31-1.w6.x86_64
php54w-tidy-5.4.31-1.w6.x86_64
php-tcpdf-6.0.089-1.el6.noarch
phpMyAdmin-4.0.10.1-1.el6.noarch
php54w-common-5.4.31-1.w6.x86_64
php54w-gd-5.4.31-1.w6.x86_64
php54w-bcmath-5.4.31-1.w6.x86_64
[root@**** ~]# rpm -qa --qf '%{name}-%{version}.%{release}.%{arch}\n' php\* mysql\* | sort
mysql55w-5.5.39.1.w6.x86_64
mysql55w-libs-5.5.39.1.w6.x86_64
mysql55w-server-5.5.39.1.w6.x86_64
php54w-5.4.31.1.w6.x86_64
php54w-bcmath-5.4.31.1.w6.x86_64
php54w-cli-5.4.31.1.w6.x86_64
php54w-common-5.4.31.1.w6.x86_64
php54w-gd-5.4.31.1.w6.x86_64
php54w-mbstring-5.4.31.1.w6.x86_64
php54w-mcrypt-5.4.31.1.w6.x86_64
php54w-mysql-5.4.31.1.w6.x86_64
php54w-pdo-5.4.31.1.w6.x86_64
php54w-tidy-5.4.31.1.w6.x86_64
php54w-xml-5.4.31.1.w6.x86_64
phpMyAdmin-4.0.10.1.1.el6.noarch
php-php-gettext-1.0.11.3.el6.noarch
php-tcpdf-6.0.089.1.el6.noarch
php-tcpdf-dejavu-sans-fonts-6.0.089.1.el6.noarch
有人能告诉我如何升级我的 php-mysql 库吗?
更换时注意事项
[root@**** ~]# yum replace php-common --replace-with=php54w-common
Loaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile
* base: mirrors.dk.telia.net
* epel: mirror.proserve.nl
* extras: ftp-stud.fht-esslingen.de
* rpmforge: mirror.nl.leaseweb.net
* updates: mirror.informatik.hs-fulda.de
* webtatic: us-east.repo.webtatic.com
Replacing packages takes time, please be patient...
Error: Package 'php-common' is not installed.
答案1
如果你使用非标准 CentOS 软件包的附加存储库,并希望使用某些组件的较新版本,那么阅读以下内容可能会对你有所帮助他们的公告也:
更新 2013-07-21– 添加了新软件包“php54w-mysqlnd”,作为“php54w-mysql”的替代品。这将提供针对 PHP MySql 本机驱动程序(而不是系统默认的 libmysqlclient)构建的 mysql、mysqli 和 pdo_mysql。它将取代“php54w-mysql55”,因为它将与 MySQL 5.0/5.1/5.5 服务器配合使用)