You also might want to try and interact with mysql if it is running, by doing a query from the command prompt:
#mysql -u root -p
Password:
mysql>use mysql
mysql>select * from user;
This should print out the usernames/encrypted passwords of the mysql users. If any of that fails, then you should suspect your mysql installation. If it works, then we need to look at how PHP was compiled with MySQL support.
I recommend grabbing the latest MySQL from mysql.com, and installing that. Then when rebuilding PHP from source, make sure to use the config option --with-mysql=/usr