How do I fix the error "Your PHP installation appears to be missing the MySQL extension which is required by WordPress."?

0

I made my web page based on Wordpress, then I wanted to make backup of the web, and now when I open my page, this error comes out:

  

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

What do you recommend doing to solve this problem?

    
asked by Jean Gotopo 04.02.2018 в 04:43
source

1 answer

1

If you are in a Linux environment, try installing the Mysql package with:

sudo apt-get install php*-mysqli

Where php * is your current PHP version for example: php7.0-mysqli . Do not forget to restart apache or your server to apply the changes.

If it is Windows, you need the corresponding% .dll of MySQL, you can configure it in php.ini

If you use a hosting:

  • Login to your cPanel.
  • Locate the Software section.
  • Look for the "Select PHP version" option
  • Choose the most current PHP version possible.
  • See if MySQL extension is active
  • answered by 04.02.2018 в 04:59