I’m noticing in my version of Centos on AWS that there are new package names for the installation of mysql:
yum install MySQL-client-community MySQL-devel-community MySQL-server-community
In addition there is a conflict in getting php to work with mysql.
Install the MySQL-shared-compat-5.1.47-1.rhel4.i386.rpm, it resolves the need for the old mysql lib dependencies for php-mysql, install first this rpm and after this, php-mysql. So performing these yum installs should get php and mysql working:
yum install MySQL-shared-compat
yum install php-mysql