create a php file and copy the below contains to test your MySql Server Database login
"
// hostname or ip of server (for local testing, localhost should work)
$dbServer='localhost';
// username and password to log onto db server
$dbUser='username';
$dbPass='password';
// name of database
$dbName='wp2';
$link = mysql_connect("$dbServer", "$dbUser", "$dbPass") or die("Could not connect");
print "Connected successfully
";
mysql_select_db("$dbName") or die("Could not select database");
print "Database selected successfully
";
// close connection
mysql_close($link);
?>
"
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment