php - unable to connect mysql database after working long -
i not able connect mysql database after working approx 5 hours on mysql database... cache problem or type of limit
i blank page... static html only
$hostname_localhost = "localhost"; $database_localhost = "akhai"; $username_localhost = "root"; $password_localhost = ""; $localhost = mysql_pconnect($hostname_localhost, $username_localhost, $password_localhost) or trigger_error(mysql_error(),e_user_error); mysql_select_db($database_localhost);
you can errors script turning on error reporting (in case isn't fatal error)
error_reporting(e_all); ini_set("display_errors", 1);
it give answer
you can trigger error handler on mysql_connect();
mysql_connect("localhost", "name", "pass") or die(mysql_error());
are sure mysql database , running?
Comments
Post a Comment