Installera bara lämplig drivrutin för PHP-MySQL:
# default
sudo apt install php-mysql
# for specific version of php (e.g. php7.4)
sudo apt install php7.4-mysql
Starta om din server:
# apache
sudo systemctl restart apache2
# nginx
sudo systemctl restart nginx