Thank you. I just tried several things but was not able to connect.
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
echo "<html><head></head><body>";
#$db_host = '64.62.151.106';
#$db_host = 'lsvcam.heliohost.us';
$db_host = 'johnny.heliohost.org';
$db_user = 'lsvcam_webcamLSVdbUser';
$db_pass = '-----';
$db_database = 'lsvcam_webcamData';
$db_port = '3306';
$conn = mysqli_connect($db_host,$db_user,$db_pass,$db_database,$db_port);
// Verbindung prüfen
if ($conn->connect_error) {
die("❌ Verbindung fehlgeschlagen: " . $conn->connect_error);
} else {
echo "✅ Verbindung erfolgreich hergestellt!<br>";
}
// Test-Query
$result = $conn->query("SHOW TABLES");
if ($result) {
echo "Gefundene Tabellen:<br>";
while ($row = $result->fetch_array()) {
echo $row[0] . "<br>";
}
} else {
echo "❌ Fehler bei Test-Query: " . $conn->error;
}
$conn->close();
echo "</body></html>";
?>
For all "$db_host", I got the same error message.
in Plesk -> Databases -> User Management -> USER -> Access Control: Allow remote connections from any host
I get the same error when trying to add the IP or www640.your-server.de
Acc. to chatgpt, I should ask this
Any futher ideas?