In that case, your solution is most likely
(Unless you are using something other than the standard PHP packages)
sudo apt install php-mysql sudo service apache2 restart
(Unless you are using something other than the standard PHP packages)