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.
How to close idle FTP Connections in cPanel Idle FTP connections are caused when an FTP client... Read More
To use plain FTP in filezilla please set up a new connection in Site Manager. File > Site... Read More
1. Login into cPanel. 2. Search for “MultiPHP INI Editor” in searchbar and open it. 3.... Read More
1. Login to cPanel. You can login through the URL: https://om.genxwhosting.com:2083 or... Read More
Domain forwarding is a process of redirecting a website to other URL 1. Login to cPanel and... Read More