2
Your problem is likely that MySQL was not compiled into PHP or was miscompiled. Check your phpinfo to make sure - you should have a table section on MySQL in phpinfo. If there is none, then you need to recompile php with MySQL or re-install the mysql-php binary.