0

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?

3
  • rpm -qa --qf "%{n}-%{v}-%{r}.%{arch}\n"| grep php?
    – quanta
    Aug 16, 2011 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, 2012 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, 2012 at 13:10

1 Answer 1

0

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

You must log in to answer this question.

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