Page 1 of 1

New to this! What the hell is my "localhost" with

Posted: Tue Mar 16, 2004 1:44 am
by beefsister
Anyone wanna tell me what I am doing wrong? I am very new to php, and would like to know why I am receiving this error:

http://www.founditforme.com/time.php

Here is a link to the script that I'd used...

http://foundit.web.aplus.net/phphelp.html


any help would be wonderful!

Posted: Tue Mar 16, 2004 1:48 am
by markl999
Access denied for user: 'foundit@localhost' (Using password: YES)

That's about it, the user foundit has no access to the mysql database using the password you supplied.

Posted: Tue Mar 16, 2004 9:43 am
by TheBentinel.com
markl999 wrote:Access denied for user: 'foundit@localhost' (Using password: YES)

That's about it, the user foundit has no access to the mysql database using the password you supplied.
I think you need to post the code you're using. MySQL installs with a user named "root" that has a blank password, I believe. So whereever you have "foundit" as a user, maybe change it to root, and wherever you have YES as a password, change it to "".

Just shooting blind though. If that doesn't work, please post your code.

Posted: Tue Mar 16, 2004 10:08 am
by ol4pr0
could just be that in that line 3 its asking for a password to connect to youre mysql, and that in youre config you might have deleted that line wich says

Code: Select all

$password = '' ;
if you have done that it will also give you that error.

if you do not have a password set, just leave it blank

but like TheBentinel said its all guessing without the connection code and the lines 1 untill 4 of the error