+ -
当前位置:首页 → 问答吧 → msyql

msyql

时间:2008-09-17

来源:互联网

系统 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)

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

作者: jingjingboy   发布时间: 2008-09-17

有人遇到这个问题不?

作者: FZL-LW   发布时间: 2008-09-17

在配置文件里添加
[mysqld]
old_passwords=OFF

作者: smrlgw   发布时间: 2008-09-17

我正在学习mysql,就当是经验,先学习一下啦,谢谢楼主啦.

作者: yylqymzk   发布时间: 2008-09-17