Bug #72538 .mysql_secret file path should be configurable
Submitted: 5 May 2014 17:29 Modified: 5 May 2014 17:56
Reporter: Morgan Tocker Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Installing Severity:S4 (Feature request)
Version:5.7+ OS:Any
Assigned to: CPU Architecture:Any

[5 May 2014 17:29] Morgan Tocker
Description:
Feature request via: http://datacharmer.blogspot.ca/2014/05/mysql-defaults-evolution.html

The randomly generated password feature (default in 5.7) writes a file called .mysql_secret in a user's $HOME directory.

While it is possible to --skip-random-passwords, it would be useful to be able to configure a path for this file to be written.  This would allow installation wrapper scripts (in this example mysql sandbox) to be able to make use of this functionality easier.

How to repeat:
http://datacharmer.blogspot.ca/2014/05/mysql-defaults-evolution.html

Suggested fix:
--random-passwords-file=N