I am developing a program by using PHP with MySQL database.
I encountered the connectivity problem.
When I click on a link or button to display list of records, sometimes MySQL suddenly shut down. I need to restart the service again.
May I know the problem regarding to this? Is it my coding error?
The following is the connection code that I used to connect MySQL DB.
Code: Select all
<?php
$link = mysql_connect("localhost") or die("Could not connect to database.\nPlease try again later. ");
mysql_select_db("Test");
?>