My remote database access works with Sequel Ace and MySQL
Workbench but not php
My connection script contains the exact same data.
I’ve searched everywhere for a solution.
Any idea why?
Thanks.
Robert
<?php
$servername = '173.231.242.82';
$username='username';
$password = 'password';
//$dbname = "birdbr7_Subscription";
$conn = new mysqli("173.231.242.82", $username, $password);
//$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn) {
die("Connection failed: " . $conn->connect_error);
} else{
echo "Connected successfully";
}
?>
1