Hello I have a centos server and I have succeeded setting remote connection from software like Navicat on windows, remoDB on android. But the problem is, I can't connect to the server from my other hosting.
here is my code sample
<?php
$servername = "******";
$username = "***";
$password = '*****';
// Create connection
$conn = new mysqli($servername, $username, $password);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
?>
and the error i got is this
Connection failed: Can't connect to MySQL server on '*****' (111 "Connection refused")