Code:
<html>
<head>
<title>bestand</title>
</head>
<body>
<?php
$username = "mein_user_name";
$password = "xxx";
$hostname = "10.128.1.5:3306";
$dbh = mysql_connect($hostname, $username, $password)
or die("Unable to connect to MySQL");
print "Connected to MySQL
";
mysql_close($dbh);
php?>
</body>
</html>
ich möchte mit dem script auf nem server connecten , der sagt mir aber immer unable to connect to mysql,
woran kann das liegen ?
mit nem front-end komm ich ohne weiteres auf die datenbank drauf