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