yum install php-mysql 7.4 -y 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