How do I fix the error below?
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
I
I'm using Fedora 25
sudo dnf search php | grep mysql
php-mysqlnd.x86_64 : A module for PHP applications that use MySQL databases
php-pear-MDB2-Driver-mysqli.noarch : MySQL Improved MDB2 driver mysqli
sudo dnf install php-mysqlnd.x86_64
Make sure you tick Mysqli and mysqlnd as shown in the screenshot
It maybe the reason The php mysql api is deprecated. if your using below < PHP5.5 just update in your server to 5.6 and above.
This issue was due to lack of database. If it is a fresh installation, you need to manually create one and assign user with privileges.
Please check in wp-config.php for any bad configurations and make sure that database and tables are not missing or corrupted.
For php 5.6
sudo apt-get install php5.6-mysqlnd-ms
and restart your apache
/etc/init.d/apache2 restart
On Oracle Linux 7.x running PHP version 7.3.x you need to run sudo yum install php-mysqlnd
in order to install the missing MySQL extension for PHP.
Remember to restart PHP and or your server for the changes to take effect.