mysql> insert imooc_admin(username,password) values('paco','311020666a5776c57d265ace682dc46d');Query OK, 1 row affected, 2 warnings (0.01 sec)mysql> select * from imooc_admin;+----+----------+--------------------------------+-------+| id | username | password?????????????????????? | email |+----+----------+--------------------------------+-------+|? 1 | paco???? | 311020666a5776c57d265ace682dc4 |?????? |+----+----------+--------------------------------+-------+1 row in set (0.00 sec)mysql>
3 回答

慕娘6614456
TA貢獻(xiàn)2條經(jīng)驗(yàn) 獲得超0個(gè)贊
嗯,是字段長度問題。password密碼是用MD5加密的32位,但我的字段類型只是用了varchar(30)。
添加回答
舉報(bào)
0/150
提交
取消