轻松解决PHP8没有mysql插件问题

修复好info.php问题后,安装wordpress,创建数据库,修改wp-config.php,都很顺利,但是最后一步,进入浏览器后,出现下面告警
‘Your PHP Installation Appears to Be Missing the MySQL Extension Which Is Required by WordPress’

下面的网站虽然有一定参考意义,但是帮不了我。
方案1 How to Fix

还是靠自力更生,当然也参考方案2,通过非常简单的办法解决了问题。
直接sudo安装php8.0-mysqlnd即可

root@MDaliyun / # apt-get install php8.0-mysqlnd

Screen Shot 2021-01-24 at 11.16.37 PM

然后重新启动服务器

root@MDaliyun / # reboot

方案2 How To Fix "Your PHP Installation Appears To Be Missing The MySQL Extension Which Is Required By WordPress"