summaryrefslogtreecommitdiff
path: root/INSTALL-SOURCE
diff options
context:
space:
mode:
authorTimothy Smith <timothy.smith@sun.com>2009-10-30 14:28:33 -0600
committerTimothy Smith <timothy.smith@sun.com>2009-10-30 14:28:33 -0600
commit141e79616303320289b33323cedbcdbe2d78c445 (patch)
treea0c3d83edaed026f2035de315751b6a3bd45cadd /INSTALL-SOURCE
parent7f9656369f97803bb10a1111f60d60db295b82a4 (diff)
downloadmariadb-git-141e79616303320289b33323cedbcdbe2d78c445.tar.gz
Bug#35106: mysql_secure_installation fails on Windows, missing "use
Term::ReadKey" Add the missing module import. Also, while here, fix a few glaring problems with the script, and ensure that it behaves properly. It seems this script may have never been working correctly (e.g., reading password didn't chomp() the result, so password was set with \n at the end; comparing the re-typed password to original was done with inverted test). Add END { cleanup(); } block to ensure the script removes temporary working files. Add SIG{INT} / SIG{QUIT} handler. Do a bit of reorganization to make the code easier to understand. Limit failed connection attempts to 3. Use ./bin/mysql if it exists, and then fall back on mysql in PATH (before it assumed 'mysql' in the path). Print a nicer error if 'mysql' can't be called. This has been tested on Windows (ActivePerl from cmd.exe, no cygwin needed) and Linux.
Diffstat (limited to 'INSTALL-SOURCE')
0 files changed, 0 insertions, 0 deletions