install2.php crashes. Cannot connect to mysql.

During the web portion of the install, after inputting the info for connecting to mysql, install2.php either crashes or returns a blank page.

Possible solutions:

Test script for determining if php can talk to mysql

<?php
   if ( mysql_connect("mysql.server.com", "username", "password") )
      { print "Success."; }
   else
      { print "Failure."; }
?>