mysqld_multi cannot read passwords

Bug #1522744 reported by Juha-Pekka Järvenpää
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Server
Unknown
Unknown
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.6
Triaged
Medium
Unassigned
5.7
Triaged
Medium
Unassigned

Bug Description

mysqld_multi has trouble reading passwords with my_print_defaults

read_defaults_by_group() reads options from defaults files, but according to my_print_defaults manpage:

       · --show, -s
           As of MySQL 5.6.25, my_print_defaults masks passwords by defaults. Use this option to display passwords in cleartext.

read_defaults_by_group() does not use the --show option for my_print_defaults and receives passwords as masked strings.

This leads to login failures when stopping servers using mysqld_multi.

This is fixed by using:

my @defaults_options = ('--show'); # Leading --no-defaults, --defaults-file, etc.

Tags: upstream
Revision history for this message
Sveta Smirnova (svetasmirnova) wrote :

Thank you for the report. Verified as described.

Changed in percona-server:
status: New → Confirmed
tags: added: upstream
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-1678

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.