Bug #68093 print the start time of the backup in mysqldump output
Submitted: 16 Jan 2013 7:43 Modified: 16 Jan 2013 7:52
Reporter: yang wang Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: mysqldump Command-line Client Severity:S4 (Feature request)
Version:all OS:Any
Assigned to: CPU Architecture:Any
Tags: mysqldump

[16 Jan 2013 7:43] yang wang
Description:
1)dump-date(below are mysqldump --help output)
--dump-date         Put a dump date to the end of the output.                                                                                              
dump-date                         TRUE  
=================
As we all known,the dump-date default is true and write dump completed time in end of the dump file,"-- Dump completed on 2013-01-16  2:20:01" for example.
I want to display the start time in dump file at the first line
advantage:
a)If i give dump file to developer,tell him the method how to take out the start and end time from the backupset,i did't need to check crontab for find out the backupset's start time.
b)Work out the backupset elapse time easier.

2)log-error(below are mysqldump --help output)
--log-error=name    Append warnings and errors to given file.
log-error                         (No default value)
=================
We have mass mysql hosts,and write a script for monitor the error file generally,it send mail if the error file add and content.
a)Advise this parameter default value setting to std error file(hostname.err)

How to repeat:
no

Suggested fix:
1)copy several source code from write_footer to write_header in client/mysqldump.c and then modify the mysqldump help
==============================
    if (opt_dump_date)
    {
      char time_str[20];
      get_date(time_str, GETDATE_DATE_TIME, 0);
      print_comment(sql_file, 0, "-- Dump completed on %s\n", time_str);
    }
    else
      print_comment(sql_file, 0, "-- Dump completed\n");

    check_io(sql_file);
==============================

2)no
[16 Jan 2013 7:52] MySQL Verification Team
thank you for a feature request (I re-worded the synopsis).
[29 Sep 2017 6:23] MySQL Verification Team
Bug #87690 marked as duplicate of this one