Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-11-2009, 07:03 PM   #1
LQ Newbie
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
yum install php-mysql fails with mysql 5.1 - "Error: mysql conflicts with MySQL"

I can't figure this out.

I've installed MySQL 5.1.32 (client and server).
I've used the standard PHP (5.1.6) and Apache (2.2.3) that came with the OS.

Wanting PHP to talk to MySQL, I try:
yum install php-mysql

I get the error:
Error: mysql conflicts with MySQL

Any ideas?

(I wish I could just run the PHP configure command '--with-mysql',but have no idea how to do that with yum.)

Old 03-12-2009, 07:12 AM   #2
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
I don't know whether the problem is obvious or not. The driver's version is lower than the installed mysql server and client. So I think there are 2 clean solutions possible:

1. Install everything from source
2. Install everything with your distro's packet manager

Personally I recommend the first as it gives you more freedom in the long run.
Cheers, J.
Old 03-13-2009, 11:32 AM   #3
LQ Newbie
Registered: Feb 2008
Posts: 2

Original Poster
Rep: Reputation: 0

I was hoping for a third option.

I chose #2 for now just to keep it easy. I'm back on MySQL 5.0 for now. When I find the time, I'll probably go with route #1 to get the advantages of the newer software, such as security bug fixes.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL 5.0.67: Unable to install & run. Error /var/lib/mysql/mysql.sock' (2) peteyperson Linux - Server 2 03-04-2009 02:16 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Newbie 1 06-23-2007 04:35 PM
Buzilla issue: "Can't connect to local MySQL server through socket '/tmp/mysql.sock'" vitopn Linux - General 3 05-21-2007 11:13 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 09:44 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration