Your php installation appears to be missing the mysql extension
by Yogi P - August 1, 2024
If we see an error message saying “Your PHP installation appears to be missing the MySQL extension which is required by WordPress,” then it means the PHP installation in our server the required extension of MySQL is not enabled. This mysql extension is required by the WordPress to connect to MySQL database.
Now to fix this error, we have to locate this extension and need to enable that in PHP configuration. This can be done easily by amending the file named php.ini in the server.
To do this locate the following line of code in php.ini file:
;extension=mysql
Once you find the text just remove the semicolon from the beginning of this line. After that the line text should look like this :-
extension=mysql
With this we have done with the changes. Now we need to restart the web server so that these changes can take effect.
Once server is restarted then check the site and see if the error is gone or it is still there. If all is done correctly then the error should not be there any more.