Commit 103643d8 authored by Michael Widenius's avatar Michael Widenius

Changed " to ' around connection name (safer)

parent 3474bb04
...@@ -4805,7 +4805,7 @@ static int do_stop_slave_sql(MYSQL *mysql_con) ...@@ -4805,7 +4805,7 @@ static int do_stop_slave_sql(MYSQL *mysql_con)
{ {
char query[160]; char query[160];
if (multi_source) if (multi_source)
sprintf(query, "STOP SLAVE \"%.80s\" SQL_THREAD", row[0]); sprintf(query, "STOP SLAVE '%.80s' SQL_THREAD", row[0]);
else else
strmov(query, "STOP SLAVE SQL_THREAD"); strmov(query, "STOP SLAVE SQL_THREAD");
...@@ -4877,7 +4877,7 @@ static int do_show_slave_status(MYSQL *mysql_con) ...@@ -4877,7 +4877,7 @@ static int do_show_slave_status(MYSQL *mysql_con)
"recovery from (the master of this slave)\n--\n\n"); "recovery from (the master of this slave)\n--\n\n");
if (multi_source) if (multi_source)
fprintf(md_result_file, "%sCHANGE MASTER \"%.80s\" TO ", fprintf(md_result_file, "%sCHANGE MASTER '%.80s' TO ",
comment_prefix, row[0]); comment_prefix, row[0]);
else else
fprintf(md_result_file, "%sCHANGE MASTER TO ", comment_prefix); fprintf(md_result_file, "%sCHANGE MASTER TO ", comment_prefix);
...@@ -4925,7 +4925,7 @@ static int do_start_slave_sql(MYSQL *mysql_con) ...@@ -4925,7 +4925,7 @@ static int do_start_slave_sql(MYSQL *mysql_con)
{ {
char query[160]; char query[160];
if (multi_source) if (multi_source)
sprintf(query, "START SLAVE \"%.80s\"", row[0]); sprintf(query, "START SLAVE '%.80s'", row[0]);
else else
strmov(query, "START SLAVE"); strmov(query, "START SLAVE");
......
...@@ -4,11 +4,11 @@ include/master-slave.inc ...@@ -4,11 +4,11 @@ include/master-slave.inc
# New --dump-slave, --apply-slave-statements functionality # New --dump-slave, --apply-slave-statements functionality
# #
use test; use test;
CHANGE MASTER "" TO MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=BINLOG_START; CHANGE MASTER '' TO MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=BINLOG_START;
STOP ALL SLAVES; STOP ALL SLAVES;
CHANGE MASTER "" TO MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=BINLOG_START; CHANGE MASTER '' TO MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=BINLOG_START;
START ALL SLAVES; START ALL SLAVES;
STOP ALL SLAVES; STOP ALL SLAVES;
CHANGE MASTER "" TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_MYPORT, MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=BINLOG_START; CHANGE MASTER '' TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_MYPORT, MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=BINLOG_START;
START ALL SLAVES; START ALL SLAVES;
include/rpl_end.inc include/rpl_end.inc
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment