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.
Overview Addon domains allow you to control multiple domains from a single account. An addon... Read More
Forward All Email for a Domain Domain forwarding takes place only when a delivery is not... Read More
In order to install SSL on your Domain, Follow the steps given below: 1. Purchase SSL... Read More
PhpMyAdmin is an application for MySQL databases management - with it you can create, alter,... Read More
URL Frame works similar to URL redirect except that instead of redirecting the visitor to your... Read More