红联Linux门户
Linux帮助

msyql-server5.0 下password函数加密还是16位?

发布时间:2008-07-26 17:39:30来源:红联作者:yesin
系统 centos 5.2 。yum安装的mysql-server5.0.45

设置密码后,php死活连不上。百思不得其解,后来查看mysql.user表发现password尽然是16位,汗。

不是4.1以后都是*+41位吗?怎么还是16位。

下面是测试结果:

[root@localhost ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.0.45 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> select password('123456');
+--------------------+
| password('123456') |
+--------------------+
| 565491d704013245 |
+--------------------+
1 row in set (0.00 sec)

这是何故,请大侠们帮忙指点一下。谢谢
文章评论

共有 2 条评论

  1. yesin 于 2008-07-27 08:12:24发表:

    有朋友使用centos5.2的吗?测试一下是不是这个情况。

  2. yesin 于 2008-07-26 18:46:55发表:

    没有人发现这个问题吗?