Sounds like the PHP server isn't configured to use MySQL.

Try putting this in a page. It should display details of how PHP is configured.

<?php phpinfo(); ?>