1 --- mysql-5.5.32/client/mysql_upgrade.c.orig 2013-07-01 03:16:34.000000000 +0000
2 +++ mysql-5.5.32/client/mysql_upgrade.c 2013-07-09 16:15:08.366178596 +0000
7 -static char mysql_path[FN_REFLEN];
8 -static char mysqlcheck_path[FN_REFLEN];
9 +static char *mysql_path = "/usr/bin/mysql";
10 +static char *mysqlcheck_path = "/usr/sbin/mysqlcheck";
12 static my_bool opt_force, opt_verbose, debug_info_flag, debug_check_flag,
13 opt_systables_only, opt_version_check;
14 static uint my_end_arg= 0;
15 -static char *opt_user= (char*)"root";
16 +static char *opt_user= (char*)"mysql";
18 static DYNAMIC_STRING ds_args;
19 static DYNAMIC_STRING conn_args;
21 dynstr_append_os_quoted(&ds_args, "--user=", opt_user, NullS);
22 dynstr_append(&ds_args, " ");
25 - find_tool(mysql_path, IF_WIN("mysql.exe", "mysql"), self_name);
27 - if (!opt_systables_only)
29 - /* Find mysqlcheck */
30 - find_tool(mysqlcheck_path, IF_WIN("mysqlcheck.exe", "mysqlcheck"), self_name);
33 + if (opt_systables_only)
35 printf("The --upgrade-system-tables option was used, databases won't be touched.\n");