如何在 CentOS 上安装 php-mysql

如何在 CentOS 上安装 php-mysql

如果我尝试安装 php-mysql,我会收到以下错误...不确定如何恢复以启动并运行 MySQL 和 PHP MySQL 模块

[12:51]~> yum install php-mysql
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * addons: mirror.rocketinternet.net
 * base: mirror.san.fastserv.com
 * epel: mirrors.kernel.org
 * extras: mirror.nic.uoregon.edu
 * ius: www.applesauceman.com
 * updates: mirror.5ninesolutions.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mysql.x86_64 0:5.1.6-27.el5_5.3 set to be updated
--> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php-mysql
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15)(64bit) for package: php-mysql
--> Processing Dependency: libmysqlclient.so.15()(64bit) for package: php-mysql
--> Running transaction check
---> Package mysql.x86_64 0:5.0.77-4.el5_5.4 set to be updated
---> Package php-common.x86_64 0:5.1.6-27.el5_5.3 set to be updated
--> Processing Conflict: mysql conflicts MySQL
--> Finished Dependency Resolution
mysql-5.0.77-4.el5_5.4.x86_64 from updates has depsolving problems
  --> mysql conflicts with MySQL-server-community
Error: mysql conflicts with MySQL-server-community
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

答案1

您需要从首先获取服务器包的同一位置安装共享兼容库包。

相关内容