diff options
author | unknown <petr@mysql.com> | 2005-04-11 17:20:29 +0400 |
---|---|---|
committer | unknown <petr@mysql.com> | 2005-04-11 17:20:29 +0400 |
commit | 0ff8a1f518eff3b88697eed5f6cab0532c7b9564 (patch) | |
tree | f0dcab6cf0a1c8415112c56ff99ea8e095ab2899 /server-tools | |
parent | dc2841e6a6ad52476d2b2248729dbc31323c75e0 (diff) | |
parent | 3852918b67b7e0ff5150d0896e4ac21bd94e6300 (diff) | |
download | mariadb-git-0ff8a1f518eff3b88697eed5f6cab0532c7b9564.tar.gz |
Merge mysqldev@production.mysql.com:my/mysql-5.0-build
into mysql.com:/home/cps/mysql/trees/mysql-5.0
Diffstat (limited to 'server-tools')
-rw-r--r-- | server-tools/instance-manager/commands.cc | 18 | ||||
-rw-r--r-- | server-tools/instance-manager/instance.cc | 4 | ||||
-rw-r--r-- | server-tools/instance-manager/options.cc | 2 |
3 files changed, 15 insertions, 9 deletions
diff --git a/server-tools/instance-manager/commands.cc b/server-tools/instance-manager/commands.cc index 426f0cc40b2..e1f811ef57d 100644 --- a/server-tools/instance-manager/commands.cc +++ b/server-tools/instance-manager/commands.cc @@ -294,13 +294,19 @@ int Show_instance_options::do_command(struct st_net *net, char *tmp_option, *option_value; get_dynamic(&(instance->options.options_array), (gptr) &tmp_option, i); option_value= strchr(tmp_option, '='); - /* split the option string into two parts */ - *option_value= 0; + /* split the option string into two parts if it has a value */ + position= 0; - store_to_string(&send_buff, tmp_option + 2, &position); - store_to_string(&send_buff, option_value + 1, &position); - /* join name and the value into the same option again */ - *option_value= '='; + if (option_value != NULL) + { + *option_value= 0; + store_to_string(&send_buff, tmp_option + 2, &position); + store_to_string(&send_buff, option_value + 1, &position); + /* join name and the value into the same option again */ + *option_value= '='; + } + else store_to_string(&send_buff, tmp_option + 2, &position); + if (send_buff.is_error() || my_net_write(net, send_buff.buffer, (uint) position)) goto err; diff --git a/server-tools/instance-manager/instance.cc b/server-tools/instance-manager/instance.cc index 00fcf6c3a98..9fdcab7ce7c 100644 --- a/server-tools/instance-manager/instance.cc +++ b/server-tools/instance-manager/instance.cc @@ -191,8 +191,8 @@ bool Instance::is_running() MYSQL mysql; uint port= 0; const char *socket= NULL; - const char *password= "321rarepassword213"; - const char *username= "645rareusername945"; + const char *password= "check_connection"; + const char *username= "MySQL_Instance_Manager"; const char *access_denied_message= "Access denied for user"; bool return_val; diff --git a/server-tools/instance-manager/options.cc b/server-tools/instance-manager/options.cc index 4b5ec27f302..4568d6b578d 100644 --- a/server-tools/instance-manager/options.cc +++ b/server-tools/instance-manager/options.cc @@ -130,7 +130,7 @@ static void version() } -static const char *default_groups[]= { "mysql", "manager", 0 }; +static const char *default_groups[]= { "manager", 0 }; static void usage() |