Bug #45200 | Windows .msi installer does not detect existing root pw on first configuration. | ||
---|---|---|---|
Submitted: | 29 May 2009 22:44 | Modified: | 13 Oct 2009 9:45 |
Reporter: | Patrick Crews | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Config Wizard | Severity: | S3 (Non-critical) |
Version: | 5.0+ | OS: | Windows (XP) |
Assigned to: | Iggy Galarza | CPU Architecture: | Any |
Tags: | .msi, configuration, root password, windows |
[29 May 2009 22:44]
Patrick Crews
[17 Jun 2009 22:42]
Iggy Galarza
Duplicate of http://bugs.mysql.com/bug.php?id=44428.
[6 Jul 2009 18:40]
Patrick Crews
Was marked as a duplicate of Bug#44428, but this isn't the case. 44428 deals with the removal / reinstatement of an instance via the configuration wizard. This bug deals with re-installation of the server itself after a removal via the .msi (not just the config wizard). To repeat this bug: 1) Install the server via the .msi and configure it. I chose Complete installation and the default configuration options with a simple password 2) Remove the MySQL installation via the .msi - click on the .msi used in step 1 and choose the 'Remove' option. *Do NOT* touch the left over data directory 3) Re-install the server after the removal - click on the same .msi and follow the complete /same installation and configuration steps. When you get to the security settings, note that you are not prompted for the existing root pw. The leftover datadir + the simple pw set in step 1 require a password, but you will not be prompted. Try to set a new root pw and finish the configuration. Note that you will fail and receive an error message. If you Cancel the configuration at this point, then re-configure this instance, you *will* be prompted for the root pw (set in step 1). One thing I noted was that the .msi-based Remove results in the registry key FoundExistingDataDir being set to 1. However, this value is reset to 0 during the re-install process (as soon as the install process moves from "Copying new files" to the launch of the MySQL Enterprise ads). I will be attaching .msi-generated log files for the initial installation and the re-install.
[6 Jul 2009 18:43]
Patrick Crews
initial install + reinstall logs
Attachment: msi_logs.tar.gz (application/x-gzip, text), 100.80 KiB.
[17 Jul 2009 0:46]
Patrick Crews
Tested same msi on XP 32 bit and Vista 64 bit. This bug only shows up on XP 32 bit. Vista 64 bit performed exactly as expected - removal and re-install of the server via the .msi will result in the user being prompted for the existing root password during the re-install / re-configure.
[3 Aug 2009 20:03]
Patrick Crews
Tested fine on Windows 2003 64 bit with the test (patched) .msi
[13 Oct 2009 9:45]
MC Brown
A note has been added to the 5.0.87, 5.1.40 and 5.4.3 changelogs: When re-installing MySQL on Windows on a server that has a data directory from a previous MySQL installation, the installer would fail to identify the existence of the installation and the password configured for the <literal>root</literal> user.