Re: mySQL wont connect
| From: | Andy Woolley | Date: | Wed, 05 Sep 2001 15:13:43 +0000 |
| Subject: | Re: mySQL wont connect | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66052@lists.php.net to get a copy of this message | ||
Kyle,
If you are absolutely sure that your username and password is
correct.......You are sure arn't you ?
Try changing "P500.MSHOME.NET" to either "localhost" or "127.0.0.1"
Most likely the MySQL admin dude has set it so that you can only connect to
MySQL from the machine itself
Andy
----- Original Message -----
From: "Kyle Smith" <dbzno1fan@hotmail.com>
To: <php-general@lists.php.net>
Sent: Wednesday, September 05, 2001 11:59 PM
Subject: [PHP] mySQL wont connect
Well it wont!
i get the error message
"Warning: MySQL Connection Failed: Access denied for user: 'test@P500'
(Using password: YES) in C:\apache\htdocs\php+mysql\connect.php on line 2
Could not connect"
When using
"<?php
$link = mysql_connect ("P500.MSHOME.NET", "test", "pass")
or die ("Could not connect");
print ("Connected successfully");
?>"
Please tell me its omething really simple.... please!
-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!
ICQ: 115852509
MSN: dbzno1fan@hotmail.com
AIM: legokiller666