Bug #27671 mysql_secure_installation with port and socket options
Submitted: 5 Apr 2007 16:17 Modified: 21 Aug 2013 7:22
Reporter: Matthew Lord Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S4 (Feature request)
Version:all OS:Any
Assigned to: CPU Architecture:Any
Tags: mysql_secure_installation

[5 Apr 2007 16:17] Matthew Lord
Description:
mysql_secure_installation does not accept any options nor does it allow
for the specification of a config file.

How to repeat:
n/a

Suggested fix:
We could easily allow for a config file by changing line 18 to:
 config={$1}
[23 May 2007 12:46] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/27214

ChangeSet@1.2526, 2007-05-23 14:42:03+02:00, df@pippilotta.erinye.com +1 -0
  BUG#27671 mysql_secure_installation with port and socket options
[23 May 2007 12:48] Daniel Fischer
This is a feature request.

The above patch will accept a single argument, assuming it to be the path to a MySQL client configuration file. This file will have to include what is normally written by the script, i.e.

[mysql]
user=root
pass=my secure root password
[23 Dec 2009 10:21] Sveta Smirnova
See also bug #39018
[21 Aug 2013 7:22] Erlend Dahl
This has been fixed in 5.7.2.