echo "Detailed error: " . mysql_error ; Database connection error (2): Could not connect to MySQL.