Bug #37542 MySQL Setup and Config wizards should allow user to specify a data directory
Submitted: 20 Jun 2008 11:21 Modified: 20 Jun 2008 17:13
Reporter: Roland Bouman Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Config Wizard Severity:S2 (Serious)
Version:5.1.25 OS:Windows
Assigned to: CPU Architecture:Any

[20 Jun 2008 11:21] Roland Bouman
Description:
MySQL 5.1.24 introduced an important change for windows users:

http://dev.mysql.com/doc/refman/5.1/en/news-5-1-24.html

"
Important Change: Security Enhancement: On Windows Vista and Windows Server 2008, a user without administrative privileges does not have write permissions to the Program Files directory where MySQL and the associated data files are normally installed. Using data files located in the standard Program Files  installation directory could therefore cause MySQL to fail, or lead to potential security issues in an installed instance.

To address the problem, on Windows XP, Windows Vista and Windows Server 2008, the datafiles and data file configuration are now set to the Microsoft recommended AppData folder. The AppData folder is typically located within the user's home directory.
"

I think the installer/config wiz. should clearly inform the user of this fact. Also, it should allow the user to choose a custom data directory. I mean, certainly on a server system, admins should be able to choose whatever directory and they are probably installing it as local admin anyway. Forcing people to change the dir, even to a recommended one, shows little consideration for those admins that built backup scripts and such relying on some location that makes more sense in their environment.

Also, the COnfig wizard suggests that the Innodb datafiles will be placed in the "Installation path" by default. Since the data dir and program dir are now by default separate, this becomes confusing. I think it should say "Data directory" or something like that. 

How to repeat:
install fresh 5.1.24 >= on windows using the wizard. Observe that we can choose the program dir, but not the data dir.

Suggested fix:
TO the setup wizard, in the screen where we can choose the program dir:
- Add a warning so user is made aware of change of data dir explictly 
- Add file browse function to override the default data dir
TO the config wizard oin the screen where the innodb data files an be placed:
- Change the default text "Installation Path" to "Data directory"
[20 Jun 2008 17:13] Sveta Smirnova
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments to the original bug instead.

Thank you for your interest in MySQL.

Duplicate of bug #37534.