diff options
Diffstat (limited to 'client/mysqladmin.c')
-rw-r--r-- | client/mysqladmin.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/mysqladmin.c b/client/mysqladmin.c index 95bc17e880b..09e6bf98f1c 100644 --- a/client/mysqladmin.c +++ b/client/mysqladmin.c @@ -420,6 +420,14 @@ static int execute_commands(MYSQL *mysql,int argc, char **argv) { const char *status; +/* + MySQL documentation relies on the fact that mysqladmin will + execute commands in the order specified, e.g. + mysqladmin -u root flush-privileges password "newpassword" + to reset a lost root password. + If this behaviour is ever changed, Docs should be notified. +*/ + for (; argc > 0 ; argv++,argc--) { switch (find_type(argv[0],&command_typelib,2)) { |