cathie — 2010-01-21T02:34:51-05:00 — #1
May I know is there any way to check mysql service status for my website?
eg for php, we can use phpinfo()...
system — 2010-01-21T03:02:21-05:00 — #2
You cannot check the mysql service status directly from the particular web site. However, you can check it by login to your server. If you do not have an access to your server where your domain is actually hosted then you will need to contact your server administrator.
cathie — 2010-01-21T03:03:37-05:00 — #3
Ok, got it!
Thanks for your reply
tapan — 2010-01-21T10:29:22-05:00 — #4
You can use this little script on your server/hosting:
$db_host = "localhost";
$db_username = "root";
$db_password = "";
$conn = @mysql_connect($db_host, $db_username, $db_password);
die ("MySQL is Down due to: " . mysql_error());
echo "Connected to MySQL!";
cathie — 2010-01-22T00:33:33-05:00 — #5
Thanks for your sharing Tapan...
At least I can know what's the problem with the connection this time