I'm using XP and I got MySQL from
http://dev.mysql.com/downloads/mysql/4.1.html
I had actually downloaded it in a bundle more than once before (XAMPP
Lite, as well as phpdev) but I couldn't figure out how to start MySQL
from those bundles, so I got it from a mirror on the mysql site.

The problem is that when I try to connect with something like this:

$dbServer='localhost';
$dbUser='root';
$dbPass='pass';

$link = mysql_connect("$dbServer", "$dbUser", "$dbPass") or die("Could
not connect");

It never allows me to connect and always gives me these errors:

-Warning: Access denied for user 'root'@'localhost' (using password:
NO) in c:\phpdev5\www\seinfeld\home.php on line 24"

-Warning: MySQL Connection Failed: Access denied for user
'root'@'localhost' (using password: NO) in
c:\phpdev5\www\seinfeld\home.php on line 24

During the installation of this MySQL, they asked me to type in a
password and confirm it underneath, but nothing was asked/said about a
username. I've tried leaving the username blank ($dbUser='';) and i've
tried it as 'root' and whatnot, but I can't seem to figure out what's
wrong.

Thanks
-bryan

Reply via email to