• guilhem@mysql.com's avatar
    Fix for Bug #1595 "mysqlbinlog can't read a password from the console". · c93f69e9
    guilhem@mysql.com 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).
    c93f69e9
mysqlbinlog.cc 21.5 KB