Config.php Help

Warning: mysql_connect(): Lost connection to MySQL server during query in /home/content/j/a/s/jasonhardwick/html/LoginScript/config.php on line 5
I cannot connect to the database because: Lost connection to MySQL server during query

For some reason I keep getting this error from the code below any ideas

<?php 
$dbname='mycreativeadmin';
$host='p3smysqladmin01.secureserver.net';
$user='mycreativeadmin';
$dbh=mysql_connect ($host,$user,'XXXX') or die ('I cannot connect to the database because: ' . mysql_error(). '');
mysql_select_db ('$dbname') or die('I cannot select the database because: ' . mysql_error());

?>