]> git.pld-linux.org Git - packages/mysql.git/blob - mysql-upgrade.patch
adjust for 5.6.14
[packages/mysql.git] / mysql-upgrade.patch
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
3 @@ -35,13 +35,13 @@
4  # endif
5  #endif
6  
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";
11  
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";
17  
18  static DYNAMIC_STRING ds_args;
19  static DYNAMIC_STRING conn_args;
20 @@ -923,15 +923,7 @@
21    dynstr_append_os_quoted(&ds_args, "--user=", opt_user, NullS);
22    dynstr_append(&ds_args, " ");
23  
24 -  /* Find mysql */
25 -  find_tool(mysql_path, IF_WIN("mysql.exe", "mysql"), self_name);
26 -
27 -  if (!opt_systables_only)
28 -  {
29 -    /* Find mysqlcheck */
30 -    find_tool(mysqlcheck_path, IF_WIN("mysqlcheck.exe", "mysqlcheck"), self_name);
31 -  }
32 -  else
33 +  if (opt_systables_only)
34    {
35      printf("The --upgrade-system-tables option was used, databases won't be touched.\n");
36    }
This page took 0.025703 seconds and 3 git commands to generate.