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.
When a user hits your website a call is made to your server to deliver the requested files. The... Read More
1. You Need to Create Database and Its User by following this article click here 2. Now go to... Read More
Parked Domains can be pointed to your main site /public_html folder only. If you want to point... Read More
Using the following code in your .htaccess file automatically redirects visitors to the HTTPS... Read More
To create an email account: To create an email account, follow the steps given below:1.... Read More