diff options
author | unknown <msvensson@pilot.(none)> | 2007-08-27 11:31:49 +0200 |
---|---|---|
committer | unknown <msvensson@pilot.(none)> | 2007-08-27 11:31:49 +0200 |
commit | 6fdcb4c7b3a095bcfb2f8ce257da302007b62ad9 (patch) | |
tree | d0683ed03b1e31036fa0df41c9bf786ccd766581 /client | |
parent | bd55d4f17411212307be35fa51fcc551d261381c (diff) | |
download | mariadb-git-6fdcb4c7b3a095bcfb2f8ce257da302007b62ad9.tar.gz |
Bug#29805 mysql_upgrade test fail if ~/.my.cnf contain a password
- "mysql" and "mysqlcheck" should not read defaults file
client/mysql_upgrade.c:
Instruct "mysql" and "mysqlcheck" that is invoked by "mysql_upgrade" not
to read defaults file, they should get all the parameters they need from
mysql_upgrade(that read the default file)
Diffstat (limited to 'client')
-rw-r--r-- | client/mysql_upgrade.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/mysql_upgrade.c b/client/mysql_upgrade.c index 630267f1a5e..fb30c6f2613 100644 --- a/client/mysql_upgrade.c +++ b/client/mysql_upgrade.c @@ -455,6 +455,7 @@ static int run_query(const char *query, DYNAMIC_STRING *ds_res, ret= run_tool(mysql_path, ds_res, + "--no-defaults", ds_args.str, "--database=mysql", "--batch", /* Turns off pager etc. */ @@ -617,6 +618,7 @@ static int run_mysqlcheck_upgrade(void) verbose("Running 'mysqlcheck'..."); return run_tool(mysqlcheck_path, NULL, /* Send output from mysqlcheck directly to screen */ + "--no-defaults", ds_args.str, "--check-upgrade", "--all-databases", |