Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Since I upgraded from 5.0 version to 5.5 I am getting the following error on my PHP page.

None of the supported PHP extensions (MySQLi, MySQL, PDO_MySQL) are available.


When I tried to install php-mysql package, I am getting the following error.

# yum install php-mysql --skip-broken

Packages skipped because of dependency problems:
    mysql-5.0.77-4.el5_4.2.x86_64 from base
    php-mysql-5.1.6-27.el5.x86_64 from base

This was working as expected when I had 5.0 version of Mysql. How do I upgrade the php extension?

share|improve this question
    
rpm -qa --qf "%{n}-%{v}-%{r}.%{arch}\n"| grep php? –  quanta Aug 16 '11 at 6:32
    
# php-common-5.3.3-14.el6_3.x86_64 # php-cli-5.3.3-14.el6_3.x86_64 # php-5.3.3-14.el6_3.x86_64 –  shantanuo Jul 29 '12 at 12:46
    
These are different from your original question (.el6 vs .el5). Moreover, I don't see the php-mysql is installed. Please show us the full output of yum install php-mysql.x86_64 and yum repolist? –  quanta Jul 29 '12 at 13:10

1 Answer 1

up vote 0 down vote accepted

After installing mysql shared compact library, this was working as expected

wget ftp://ftp.isu.edu.tw/pub/Unix/Database/MySQL/Downloads/MySQL-5.5/MySQL-shared-compat-5.5.24-1.el6.x86_64.rpm
rpm -ihv MySQL-shared-compat-5.5.24-1.el6.x86_64.rpm
yum install php-mysql --skip-broken
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.