I would hazard a guess that you have supplied a username/password/host 
combination that isn't valid.

Check in the mysql.user table, and check that there is an entry there for 
the user and host. Thepassword should be encrypted so you won't know if its 
what you're typing, but you should be able to alter this to something else 
if you think it might be wrong.

One other thing worth noting, is that MySQL only picks up changes to user's 
and user permissions when either the server process is restarted, or you 
instruct it to "flush privileges". If this user has just been added then 
maybe something like this is your problem

HTH

Richy

-----Original Message-----
From:   josep [SMTP:[EMAIL PROTECTED]]
Sent:   06 December 2001 11:22
To:     [EMAIL PROTECTED]
Cc:     [EMAIL PROTECTED]
Subject:        [PHP] Access denied for user

I get the following message when trying to view a php page

Warning: Access denied for user: 'jupshoes@localhost' (Using password: YES)
in /home/jupshoes/public_html/guest/index.php on line 27
Unable to connect to SQL server

What is going wrong

Josep


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to