This is the first time i've come across this, i am trying to connect to mySQL
Workbench on a windows server, using codeigniter
. I get the following error.
Warning: mysqli_connect(): (HY000/2003): Can't connect to MySQL server on 'xx.xxx.xxx.xxx' (111)
So i tryed connecting using php via a simple connect script and i get the same error.
I thought maybe port 3306
was blocked , but my ISP said its not.
Ive googles and found a few of the same issues that have happened to other people, but no proper solution can be found.
On Stackoverflow - Same Issue, thats not working
Simple connect :
$servername = "78.137.126.xxx;
$username = "root";
$password = "xxxxxx";
$conn = mysqli_connect($servername, $username, $password);
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
echo "Connected successfully";
Even if i add the port to the above , the result does not change.