Bug #14023 | "select ... from mysql.user" produces wrong results in "password" field | ||
---|---|---|---|
Submitted: | 14 Oct 2005 9:25 | Modified: | 18 Oct 2005 16:40 |
Reporter: | Joerg Bruehe | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0.15 | OS: | all Unix |
Assigned to: | Joerg Bruehe | CPU Architecture: | Any |
[14 Oct 2005 9:25]
Joerg Bruehe
[14 Oct 2005 9:48]
Joerg Bruehe
This one seems to be related: ------------------------------------------------------- *** r/system_mysql_db.result --- r/system_mysql_db.reject *************** *** 73,79 user CREATE TABLE `user` ( `Host` char(60) collate utf8_bin NOT NULL default '', `User` char(16) collate utf8_bin NOT NULL default '', ! `Password` char(41) character set latin1 collate latin1_bin NOT NULL default '', `Select_priv` enum('N','Y') character set utf8 NOT NULL default 'N', `Insert_priv` enum('N','Y') character set utf8 NOT NULL default 'N', `Update_priv` enum('N','Y') character set utf8 NOT NULL default 'N', --- 73,79 user CREATE TABLE `user` ( `Host` char(60) collate utf8_bin NOT NULL default '', `User` char(16) collate utf8_bin NOT NULL default '', ! `Password` binary(41) NOT NULL default '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0 \0', `Select_priv` enum('N','Y') character set utf8 NOT NULL default 'N', `Insert_priv` enum('N','Y') character set utf8 NOT NULL default 'N', `Update_priv` enum('N','Y') character set utf8 NOT NULL default 'N', ------------------------------------------------------- Also happening everywhere.
[14 Oct 2005 11:34]
Joerg Bruehe
Found the reason: In release builds, tests are run using the (new) Perl script "mysql-test-run.pl" whereas developers use the (old) Shell script "mysql-test-run". When the suite is started, the database is initialized with user and privilege tables, and the two scripts use different means to do that.
[14 Oct 2005 16:32]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/31117
[18 Oct 2005 16:40]
Joerg Bruehe
Problem is fixed (for the moment) by changing the command file used by the Perl test suite. Long-term solution will be to ensure that both the Perl and the shell suite use the same input, preferably together with the input file for Windows, filed as bug#14120.
[18 Oct 2005 16:41]
Joerg Bruehe
Forgot to write explicitly: The fix is contained in 5.0.15.