From: Bjorn Munch Date: November 19 2012 2:45pm Subject: bzr push into mysql-5.6 branch (bjorn.munch:4575 to 4577) List-Archive: http://lists.mysql.com/commits/145328 Message-Id: <20121119144516.4473.20474.4577@khepri15.no.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 4577 Bjorn Munch 2012-11-19 14848215 - RANDOM PASSWD IN "MYSQL_INSTALL_DB" FAILS DUE TO "TR": "ILLEGAL BYTE SEQUENCE" Follow-up fix: setting LC_CTYPE was not enough on all platforms. On Solaris, with my settings, I saw it generate password with only digits or 'a'. Fixed by setting LC_ALL=C instead. modified: scripts/mysql_install_db.pl.in 4576 Bjorn Munch 2012-11-16 Bug #15866735 MYSQL_INSTALL_DB DOES NOT HONOR --USER, AND CODE TO DO IT IS BROKEN Write correct code for executing chown --user not supported on Windows modified: scripts/mysql_install_db.pl.in 4575 Jon Olav Hauglid 2012-11-09 {clone-5.6.9-rc-build} Bug#11762933: MYSQLDUMP WILL SILENTLY SKIP THE `EVENT` TABLE DATA IF DUMPS Post-push fix: Drop event explicitly since events are now dumped even with --skip-events modified: mysql-test/r/mysqldump.result mysql-test/t/mysqldump.test === modified file 'scripts/mysql_install_db.pl.in' --- a/scripts/mysql_install_db.pl.in 2012-11-02 18:47:08 +0000 +++ b/scripts/mysql_install_db.pl.in 2012-11-19 13:53:28 +0000 @@ -93,15 +93,20 @@ EOF2 uses the compiled binaries and support files within the source tree, useful for if you don't want to install MySQL yet and just want to create the system tables. +EOF3 + if ( $^O !~ m/^(MSWin32|cygwin)$/ ) { + print <{user}; +my @pwnam; +if ($opt_user) +{ + if ( $^O =~ m/^(MSWin32|cygwin)$/ ) + { + warning($opt, "The --user option is not supported on Windows, ignoring"); + $opt_user= undef; + } + else + { + @pwnam= getpwnam($opt_user); + } +} + foreach my $dir ( $opt->{ldata}, "$opt->{ldata}/mysql", "$opt->{ldata}/test" ) { mkdir($dir, 0700) unless -d $dir; - chown($opt->{user}, $dir) if -w "/" and !$opt->{user}; + if ($opt_user and -w "/") + { + chown($pwnam[2], $pwnam[3], $dir) + or error($opt, "Could not chown directory $dir"); + } } push(@args, "--user=$opt->{user}") if $opt->{user}; No bundle (reason: useless for push emails).