If MySQL is configured on your system correctly, you need a password in your script. I'm curious, though, why you're accessing it as root? Usually I create a user account in mysql and grant only the priviledges needed for that account. It may be a mute point, but if a bug were to crop up and your script has root access to mysql, all sorts of crap can take place.

Have fun,
Mike

Gibbs, Liam - SXIA wrote:

First off, when executing this command:

$connection = mysql_connect("localhost", "root", "");

I get this error msg:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user:
'root@localhost' (Using password: NO) in
/home/superpage/public_html/index.php on line 49


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to