Certain versions of MySQL are vulnerable to a buffer overflow when a user-defined function is created. This would allow an authenticated attacker to gain control of the MySQL daemon. Note that successful exploitation of this issue is dependent upon the attacker possessing insert privileges on the MySQL function table; this mitigates the risk considerably.
So that is the reason why MySQL is disabled on Shared Servers.
Solution: For Example: Instead of using mysql_connect () , you need to use mysqli_connect () in order to make your website connect with the database.
Below is the code for mysqli_connect ():
<?php
$con = mysqli_connect("localhost","my_user","my_password","my_db");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
?>
For more reference, Click Here.
Sometimes FTP connections do not terminate properly and must be manually disconnected. We can do... Read More
Overview You can use this interface to create and manage your website's File Transfer Protocol... Read More
1. Login to cPanel. 2. Click on Email Accounts. 3. Click Email Accounts Tab.... Read More
Here is how to initiate an AutoSSL check from your cPanel account. 1.Log into your... Read More
Overview The Redirects interface allows you to send all of the visitors of a domain or... Read More