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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -