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

前端 未结 25 1135
死守一世寂寞
死守一世寂寞 2020-11-28 08:48

How do I fix the error below?

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

I

相关标签:
25条回答
  • 2020-11-28 09:14

    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
    
    0 讨论(0)
  • 2020-11-28 09:15

    Make sure you tick Mysqli and mysqlnd as shown in the screenshot

    0 讨论(0)
  • 2020-11-28 09:16

    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.

    0 讨论(0)
  • 2020-11-28 09:16

    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.

    0 讨论(0)
  • 2020-11-28 09:18

    For php 5.6 sudo apt-get install php5.6-mysqlnd-ms and restart your apache

    /etc/init.d/apache2 restart
    
    0 讨论(0)
  • 2020-11-28 09:18

    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.

    0 讨论(0)
提交回复
热议问题