Bug #21997 cannot install when nearly empty subdir 'mysql' exists in installation dir
Submitted: 4 Sep 2006 14:46 Modified: 13 Nov 2006 1:17
Reporter: Carsten Segieth Email Updates:
Status: Closed Impact on me:
Category:MySQL Enterprise Monitor: Installing Severity:S3 (Non-critical)
Version:0.6.05 OS:Microsoft Windows (Windows)
Assigned to: Keith Russell CPU Architecture:Any

[4 Sep 2006 14:46] Carsten Segieth
a warning pops up during the installion, that is not correct: 

 The selected directory already contains a MySQL installation. Please delete the existing installation or select an alternate installation directory.

But: in my case there was only a sub dir 'mysql' in the choosen install directory with nothing in except a saved copy of my.ini file; no subdirectories

How to repeat:
- run install on Windows into a target directory where already a subdir 'mysql' exists

Suggested fix:
- check not only for the subdir 'mysql' but also whether there is content in that would be overwritten
- give a longer / more explaining warning ("... there might be an old installation ... you will loose all data from the subdir ...") 
- give a chance to say 'yes, I know what I will do" by providing a button 'continue'
- (I did not check the log, so this might be already there) log the user decision to continue in the logfile for later reference (when user calls support after all crashed ... :-)
[13 Nov 2006 1:17] Carsten Segieth
now a warning with explanation is shown when directories exists that might be y MySQL database.