I'm using 32-bit Ubuntu 14.04 LTS. I've set my LAMP stack many days ago. Today I upgraded my PHP version to 5.6. Trying to Debug my WordPress plugin using php-cli and my console prompted me the strange message:
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
I tried all the possible solutions, like:
dpkg --list | grep php5-mysql sudo apt-get install php5-mysql sudo service apache2 restart
mysqldump --lock-all-tables -u root -p --all-databases > dump.sql sudo apt-get remove mysql-server sudo apt-get autoremove sudo apt-get install mysql-client-5.6 mysql-client-core-5.6 sudo apt-get install mysql-server-5.6 mysql -u root -p < dump.sql
but nothing happened.
<?php phpinfo();, it's displaying:
Client API version 5.5.50
But command like:
sudo apt-get install mysql-client-5.6 mysql-client-core-5.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-client-5.6 is already the newest version.
mysql-client-core-5.6 is already the newest version.
mysql-client-core-5.6 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
How can I solve the warning and make my PHP do my desired job?