• Hello everyone, very much an inexperienced user here. Initial website was setup and created by a third party. I maintain and update the site periodically with new news and information.

    We were informed today that our website could not be accessed, with the error message “Your PHP installation appears to be missing the MySQL extension which is required by WordPress.” appearing at the top. Three days ago, the website was functioning normally, and no updates or additions have been made to the page since.

    I’ve Googled and searched the forums and am not able to make much sense of it. I’m a fairly literate user through the front end, but not sure how to navigate through the back. Any help you might be able to provide would be greatly appreciated! Our website is:

    https://www.yourbowlingcoach.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • Time to contact your host! Was there a server update recently? Was PHP updated?

    Also I hope you had a recent backup of all your site files and WordPress database in case you have to start over – it unfortunately happens.

    You can use the following library if you do not have mysql_connect enabled by have PDO enabled:

    https://github.com/AzizSaleh/mysql

    Copy those files to a folder and then in your wordpress wp-includes/load.php file replace the following two lines:

    wp_load_translations_early();
    die( __( 'Your PHP installation appears to be missing the MySQL extension which is required by WordPress.' ) );

    With the following:

    $pathToMySQL = 'C:\\xampp\\htdocs\\mysql\\';
    require_once($pathToMySQL . 'MySQL_Definitions.php');
    require_once($pathToMySQL . 'MySQL.php');
    require_once($pathToMySQL . 'MySQL_Functions.php');
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Missing MySQL extension’ is closed to new replies.