• unknown's avatar
    Fix for Bug #1595 "mysqlbinlog can't read a password from the console". · 3e937ef4
    unknown authored
    ** I already fixed it in 3.23; I fix it in 4.0 separately because the
    code is a bit different (so the changeset 1.1422 of 3.23 should not be
    merged here) **
    Make mysqlbinlog prompt for the password if
    mysqlbinlog -p
    instead of printing the usage().
    This makes mysqlbinlog behave like other clients.
    This new code was almost copied from mysqldump.
    Note that before, one could use
      mysqlbinlog -p pass
    and now one must use
      mysqlbinlog -ppass
    (putting a space will ask for the password).
    
    
    client/mysqlbinlog.cc:
      Make mysqlbinlog prompt for the password if
      mysqlbinlog -p
      instead of printing the usage().
      This makes mysqlbinlog behave like other clients.
      This new code was almost copied from mysqldump.
      Note that before, one could use
        mysqlbinlog -p pass
      and now one must use
        mysqlbinlog -ppass
      (putting a space will ask for the password).
    3e937ef4
mysqlbinlog.cc 21.5 KB