MySQL Forums
Forum List  »  Newbie

Need help with PASSWORD()
Posted by: Ruquay K Calloway
Date: June 23, 2005 09:22AM

I'm having trouble running a query when it uses the PASSWORD() function, although I have not had any trouble storing information in that way.
e.g.:
INSERT INTO `users` VALUES ('username',PASSWORD('abcd'));
does not give me any trouble, and when I check the entry, the password has been encrypted.
However, when I want to check a password against it:
SELECT * FROM `users` WHERE password=PASSWORD('abcd');
It runs the query, but returns nothing. Do I have a configuration setting wrong?
Thanks,
Ruquay

Options: ReplyQuote


Subject
Written By
Posted
Need help with PASSWORD()
June 23, 2005 09:22AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.