You have to configure php with mysql. Go the the PHP directory and make sure you add this line to your current configuration:
./configure --with-mysql=/usr/local/mysql
This is assuming that you installed mysql in the typical location /usr/local/mysql
make
(stop apache)
make install
(start apache)