Bug #52008 FLUSH log_type LOGS should have mysqladmin equivalents
Submitted: 12 Mar 2010 18:44 Modified: 22 May 2014 8:11
Reporter: Paul DuBois Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S4 (Feature request)
Version:5.5 OS:Any
Assigned to: CPU Architecture:Any

[12 Mar 2010 18:44] Paul DuBois
Description:
For MySQL 6.0, FLUSH LOGS was extended to have FLUSH BACKUP LOGS syntax, and mysqladmin was extended to have a flush-backup-logs command. (See Bug#47493.)

For 5.5, Bug#14104 extended FLUSH LOGS to have FLUSH log_type LOGS syntax for other types of logs such as binary or relay logs. However, mysqladmin was not extended with equivalent commands. It would be good for mysqladmin to have flush-binary-logs, flush-relay-logs, etc. commands to match the new syntax of FLUSH LOGS. This is particularly so because these FLUSH LOGS extensions have also been merged up to 6.0 - so in 6.0, one FLUSH LOGS extension has an equivalent mysqladmin command but the other ones do not, which is inconsistent.

How to repeat:
See above.
[13 Mar 2010 10:24] Valeriy Kravchuk
Thank you for the feature request.
[15 Mar 2010 21:00] Jim Winstead
Rather than add a bunch of 'flush-XXX-logs' commands, I think it would be nice to simplify the mysqladmin 'flush' commands a bit to make it 'mysqladmin flush <whatever>'  and deprecate all of the distinct flush-FOO commands.
[22 May 2014 8:11] Erlend Dahl
Duplicate of Bug#60878 mysqladmin doesn't support flushing specific logs