我在WinNT和RedHad Linux下都执行过了,没有问题。mysql 3.23.49-nt for Winnt,mysql 3.23.36 for linux。下面是我测试过程:
mysql> create table if not exists tests(users varchar(10) binary not null,passwd
 varchar(50) binary not null);
Query OK, 0 rows affected (0.04 sec)mysql> insert into tests values ('webmin',md5('12345'));
Query OK, 1 row affected (0.01 sec)mysql> select * from tests;
+--------+----------------------------------+
| users  | passwd                           |
+--------+----------------------------------+
| webmin | 827ccb0eea8a706c4c34a16891f84e7b |
+--------+----------------------------------+
1 row in set (0.00 sec)mysql> select * from tests where passwd = md5('12345');
+--------+----------------------------------+
| users  | passwd                           |
+--------+----------------------------------+
| webmin | 827ccb0eea8a706c4c34a16891f84e7b |
+--------+----------------------------------+
1 row in set (0.00 sec)