MySQL Forums
Forum List  »  Security

Im unable to save my encrypted passwords!
Posted by: Sergio Juarez
Date: December 22, 2005 11:25AM

I have a php function that takes some normal text as input and outputs a encrypted string. When I try to insert thru my PHP or mysql client that encrypted string it gives me the following error:

ERROR 1406 (22001): Data too long for column 'password' at row 1

But when I do the same thing with Phpmyadmin it succesfully inserts the string. The field is a varchar (255).

I think the problem has something to do with the Character set, I have enabled UTF-8 for the table. Does anybody knows how can I fix this problem? thanks.

Options: ReplyQuote


Subject
Views
Written By
Posted
Im unable to save my encrypted passwords!
3932
December 22, 2005 11:25AM


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.