Bug #86125 mysql_secure_installation does not prompt entering password
Submitted: 28 Apr 2017 6:34 Modified: 28 Apr 2017 9:11
Reporter: aaron chan Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:5.7.14, 5.7.18 OS:CentOS
Assigned to: CPU Architecture:Any
Tags: mysql_secure_installation, password

[28 Apr 2017 6:34] aaron chan
Description:
The document says "This option(--password,-p) is accepted but ignored. Whether or not this option is used, mysql_secure_installation always prompts the user for a password."
but when i include "--password" on the command line,mysql_secure_installation actually does not prompt me to provide the password.

How to repeat:
[root@centos7 ~]# mysql_secure_installation -p894103cgn
mysql_secure_installation: [Warning] Using a password on the command line interface can be insecure.

Securing the MySQL server deployment.

The 'validate_password' plugin is installed on the server.
The subsequent steps will run with the existing configuration
of the plugin.
Using existing password for root.
[28 Apr 2017 9:11] MySQL Verification Team
Hello Aaron Chan,

Thank you for the report.

Thanks,
Umesh