Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

if i try to install php-mysql I get the following error... not sure how to recover from it to get MySQL and the PHP MySQL module up and running

[12:51]~> yum install php-mysql
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * addons:
 * base:
 * epel:
 * extras:
 * ius:
 * updates:
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: for package: php-mysql
--> Processing Dependency: 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.
share|improve this question
up vote 0 down vote accepted

You'll need to install the shared compatibility libraries package from the same place that you got the server package first.

share|improve this answer
You rock, but I have no idea where this was from, I didnt install the initial PHP or MYSQL – qodeninja Feb 24 '11 at 21:03
Try the download section of the MySQL website. – Ignacio Vazquez-Abrams Feb 24 '11 at 21:04
So are you saying I need like mysql51-libs.x86_64 from yum, then I can install php-mysql? – qodeninja Feb 24 '11 at 21:11
No. You need the MySQL-shared-compat package from the MySQL website, with the appropriate version and release to match the currently installed MySQL-server-community package. – Ignacio Vazquez-Abrams Feb 24 '11 at 21:14
Haha I dunno how to check what version I need =/ – qodeninja Feb 24 '11 at 21:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .