How to test a MySQL database connection

June 25, 2010

Create a new php file:

";
?>

Place this file in your php enabled directory and browse to it.

If everything worked fine you will see

Connected to MySQL!!  FINALLY!