Hello, i had a DB set up at work, and it was working fine.
Now i have transfered it onto my home pc and am having connection problems.
Could someone look at these error messages and let me know what i can do.
Warning: Access denied for user: 'gworsnup@localhost' (Using password: YES) in C:\Program Files\Apache Group\Apache\htdocs/mysql/usernametest.php on line 4
Warning: MySQL Connection Failed: Access denied for user: 'gworsnup@localhost' (Using password: YES) in C:\Program Files\Apache Group\Apache\htdocs/mysql/usernametest.php on line 4
Warning: Undefined variable: msg in C:\Program Files\Apache Group\Apache\htdocs/mysql/usernametest.php on line 14
i get these errors from a simple connection tester page
(code below)
<?php $user = "gworsnup";
$conn = mysql_connect( "localhost", $user, "bracknell" );
if ($conn){
$msg = "Congratulations $user, you have connected to MySQL";}
?>
<html>
<head>
<title>Connecting User</title>
</head>
<body>
<h3><?php echo ($msg); ?></h3>
</body>
</html>
If someone could tell me the text to type in the mysql monitor, to set it up for the log on details above.
any help is greatly appreciated.