yum install php-mysql for 7.4 php code example
Example: yum install php-mysql
#install php & php-mysql extension
sudo yum install php php-mysql
#restart web server
sudo systemctl restart httpd.service
#install php & php-mysql extension
sudo yum install php php-mysql
#restart web server
sudo systemctl restart httpd.service