Skip to content

Commit ee34bb4

Browse files
author
Sven Sandberg
committed
WL#14194 step 3.3: Aliases for command line options
WL#14194: Replace old terms in replication system variables, options, and strings For all renamed command-line options, we re-introduce the old name as a deprecated alias. This includes command-line options in mysqladmin, mysqlbinlog, mysqldump, and the server. For the server, it only includes command-line options that are not defined through a system variable. RB:25845
1 parent f5a7287 commit ee34bb4

12 files changed

+353
-22
lines changed

client/client_priv.h

+11-5
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ enum options_client {
6060
OPT_O_ENC,
6161
OPT_ESC,
6262
OPT_TABLES,
63-
OPT_MASTER_DATA,
63+
OPT_SOURCE_DATA,
6464
OPT_AUTOCOMMIT,
6565
OPT_AUTO_REHASH,
6666
OPT_LINE_NUMBERS,
@@ -78,7 +78,7 @@ enum options_client {
7878
OPT_SSL_CIPHER,
7979
OPT_SHUTDOWN_TIMEOUT,
8080
OPT_LOCAL_INFILE,
81-
OPT_DELETE_MASTER_LOGS,
81+
OPT_DELETE_SOURCE_LOGS,
8282
OPT_COMPACT,
8383
OPT_PROMPT,
8484
OPT_IGN_LINES,
@@ -112,9 +112,9 @@ enum options_client {
112112
OPT_DROP_DATABASE,
113113
OPT_TZ_UTC,
114114
OPT_CREATE_SLAP_SCHEMA,
115-
OPT_MYSQLDUMP_SLAVE_APPLY,
116-
OPT_MYSQLDUMP_SLAVE_DATA,
117-
OPT_MYSQLDUMP_INCLUDE_MASTER_HOST_PORT,
115+
OPT_MYSQLDUMP_REPLICA_APPLY,
116+
OPT_MYSQLDUMP_REPLICA_DATA,
117+
OPT_MYSQLDUMP_INCLUDE_SOURCE_HOST_PORT,
118118
OPT_MYSQLDUMP_IGNORE_ERROR,
119119
OPT_SLAP_CSV,
120120
OPT_SLAP_CREATE_STRING,
@@ -174,6 +174,12 @@ enum options_client {
174174
OPT_TLS_CIPHERSUITES,
175175
OPT_MYSQL_BINARY_AS_HEX,
176176
OPT_LOAD_DATA_LOCAL_DIR,
177+
OPT_READ_FROM_REMOTE_MASTER_DEPRECATED,
178+
OPT_MASTER_DATA_DEPRECATED,
179+
OPT_MYSQLDUMP_SLAVE_APPLY_DEPRECATED,
180+
OPT_DELETE_MASTER_LOGS_DEPRECATED,
181+
OPT_MYSQLDUMP_SLAVE_DATA_DEPRECATED,
182+
OPT_MYSQLDUMP_INCLUDE_MASTER_HOST_PORT_DEPRECATED,
177183
/* Add new option above this */
178184
OPT_MAX_CLIENT_OPTION
179185
};

client/mysqladmin.cc

+14-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ enum commands {
147147
ADMIN_FLUSH_PRIVILEGES,
148148
ADMIN_START_REPLICA,
149149
ADMIN_STOP_REPLICA,
150-
ADMIN_FLUSH_THREADS
150+
ADMIN_FLUSH_THREADS,
151+
ADMIN_START_SLAVE,
152+
ADMIN_STOP_SLAVE
151153
};
152154
static const char *command_names[] = {"create",
153155
"drop",
@@ -171,6 +173,8 @@ static const char *command_names[] = {"create",
171173
"start-replica",
172174
"stop-replica",
173175
"flush-threads",
176+
"start-slave",
177+
"stop-slave",
174178
NullS};
175179

176180
static TYPELIB command_typelib = {array_elements(command_names) - 1, "commands",
@@ -1112,6 +1116,9 @@ static int execute_commands(MYSQL *mysql, int argc, char **argv) {
11121116
break;
11131117
}
11141118

1119+
case ADMIN_START_SLAVE:
1120+
CLIENT_WARN_DEPRECATED("start-slave", "start-replica");
1121+
// FALLTHROUGH
11151122
case ADMIN_START_REPLICA:
11161123
if (mysql_query(mysql, "START REPLICA")) {
11171124
my_printf_error(0, "Error starting replication: %s", error_flags,
@@ -1120,6 +1127,10 @@ static int execute_commands(MYSQL *mysql, int argc, char **argv) {
11201127
} else
11211128
puts("Replication started");
11221129
break;
1130+
1131+
case ADMIN_STOP_SLAVE:
1132+
CLIENT_WARN_DEPRECATED("stop-slave", "stop-replica");
1133+
// FALLTHROUGH
11231134
case ADMIN_STOP_REPLICA:
11241135
if (mysql_query(mysql, "STOP REPLICA")) {
11251136
my_printf_error(0, "Error stopping replication: %s", error_flags,
@@ -1228,7 +1239,9 @@ static void usage(void) {
12281239
shutdown Take server down\n\
12291240
status Gives a short status message from the server\n\
12301241
start-replica Start replication\n\
1242+
start-slave Deprecated: use start-replica instead\n\
12311243
stop-replica Stop replication\n\
1244+
stop-slave Deprecated: use stop-replica instead\n\
12321245
variables Prints variables available\n\
12331246
version Get version info from server");
12341247
}

client/mysqlbinlog.cc

+9
Original file line numberDiff line numberDiff line change
@@ -1892,6 +1892,11 @@ static struct my_option my_long_options[] = {
18921892
"This is an alias for read-from-remote-source=BINLOG-DUMP-NON-GTIDS.",
18931893
&opt_remote_alias, &opt_remote_alias, nullptr, GET_BOOL, NO_ARG, 0, 0, 0,
18941894
nullptr, 0, nullptr},
1895+
{"read-from-remote-master", OPT_READ_FROM_REMOTE_MASTER_DEPRECATED,
1896+
"This option is deprecated and will be removed in a future version. "
1897+
"Use read-from-remote-source instead.",
1898+
&opt_remote_proto_str, &opt_remote_proto_str, nullptr, GET_STR,
1899+
REQUIRED_ARG, 0, 0, 0, nullptr, 0, nullptr},
18951900
{"read-from-remote-source", OPT_REMOTE_PROTO,
18961901
"Read binary logs from a MySQL server through the COM_BINLOG_DUMP or "
18971902
"COM_BINLOG_DUMP_GTID commands by setting the option to either "
@@ -2233,6 +2238,10 @@ extern "C" bool get_one_option(int optid, const struct my_option *opt,
22332238
opt_remote_alias = true;
22342239
opt_remote_proto = BINLOG_DUMP_NON_GTID;
22352240
break;
2241+
case OPT_READ_FROM_REMOTE_MASTER_DEPRECATED:
2242+
warning(CLIENT_WARN_DEPRECATED_MSG("--read-from-remote-master",
2243+
"--read-from-remote-source"));
2244+
/* FALLTHROUGH */
22362245
case OPT_REMOTE_PROTO:
22372246
opt_remote_proto = (enum_remote_proto)(
22382247
find_type_or_exit(argument, &remote_proto_typelib, opt->name) - 1);

client/mysqldump.cc

+56-13
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ static bool ansi_quotes_mode = false;
147147
static uint opt_zstd_compress_level = default_zstd_compression_level;
148148
static char *opt_compress_algorithm = nullptr;
149149

150-
#define MYSQL_OPT_MASTER_DATA_EFFECTIVE_SQL 1
151-
#define MYSQL_OPT_MASTER_DATA_COMMENTED_SQL 2
150+
#define MYSQL_OPT_SOURCE_DATA_EFFECTIVE_SQL 1
151+
#define MYSQL_OPT_SOURCE_DATA_COMMENTED_SQL 2
152152
#define MYSQL_OPT_SLAVE_DATA_EFFECTIVE_SQL 1
153153
#define MYSQL_OPT_SLAVE_DATA_COMMENTED_SQL 2
154154
static uint opt_enable_cleartext_plugin = 0;
@@ -240,11 +240,16 @@ static struct my_option my_long_options[] = {
240240
{"allow-keywords", OPT_KEYWORDS,
241241
"Allow creation of column names that are keywords.", &opt_keywords,
242242
&opt_keywords, nullptr, GET_BOOL, NO_ARG, 0, 0, 0, nullptr, 0, nullptr},
243-
{"apply-replica-statements", OPT_MYSQLDUMP_SLAVE_APPLY,
243+
{"apply-replica-statements", OPT_MYSQLDUMP_REPLICA_APPLY,
244244
"Adds 'STOP SLAVE' prior to 'CHANGE MASTER' and 'START SLAVE' to bottom "
245245
"of dump.",
246246
&opt_slave_apply, &opt_slave_apply, nullptr, GET_BOOL, NO_ARG, 0, 0, 0,
247247
nullptr, 0, nullptr},
248+
{"apply-slave-statements", OPT_MYSQLDUMP_SLAVE_APPLY_DEPRECATED,
249+
"This option is deprecated and will be removed in a future version. "
250+
"Use apply-replica-statements instead.",
251+
&opt_slave_apply, &opt_slave_apply, nullptr, GET_BOOL, NO_ARG, 0, 0, 0,
252+
nullptr, 0, nullptr},
248253
{"bind-address", 0, "IP address to bind to.", (uchar **)&opt_bind_addr,
249254
(uchar **)&opt_bind_addr, nullptr, GET_STR, REQUIRED_ARG, 0, 0, 0, nullptr,
250255
0, nullptr},
@@ -311,18 +316,23 @@ static struct my_option my_long_options[] = {
311316
{"default-character-set", OPT_DEFAULT_CHARSET,
312317
"Set the default character set.", &default_charset, &default_charset,
313318
nullptr, GET_STR, REQUIRED_ARG, 0, 0, 0, nullptr, 0, nullptr},
314-
{"delete-source-logs", OPT_DELETE_MASTER_LOGS,
319+
{"delete-source-logs", OPT_DELETE_SOURCE_LOGS,
315320
"Rotate logs before the backup, equivalent to FLUSH LOGS, and purge "
316321
"all old binary logs after the backup, equivalent to PURGE LOGS. This "
317322
"automatically enables --source-data.",
318323
&opt_delete_master_logs, &opt_delete_master_logs, nullptr, GET_BOOL,
319324
NO_ARG, 0, 0, 0, nullptr, 0, nullptr},
325+
{"delete-master-logs", OPT_DELETE_MASTER_LOGS_DEPRECATED,
326+
"This option is deprecated and will be removed in a future version. "
327+
"Use delete-source-logs instead.",
328+
&opt_delete_master_logs, &opt_delete_master_logs, nullptr, GET_BOOL,
329+
NO_ARG, 0, 0, 0, nullptr, 0, nullptr},
320330
{"disable-keys", 'K',
321331
"'/*!40000 ALTER TABLE tb_name DISABLE KEYS */; and '/*!40000 ALTER "
322332
"TABLE tb_name ENABLE KEYS */; will be put in the output.",
323333
&opt_disable_keys, &opt_disable_keys, nullptr, GET_BOOL, NO_ARG, 1, 0, 0,
324334
nullptr, 0, nullptr},
325-
{"dump-replica", OPT_MYSQLDUMP_SLAVE_DATA,
335+
{"dump-replica", OPT_MYSQLDUMP_REPLICA_DATA,
326336
"This causes the binary log position and filename of the source to be "
327337
"appended to the dumped data output. Setting the value to 1, will print"
328338
"it as a CHANGE MASTER command in the dumped data output; if equal"
@@ -335,6 +345,11 @@ static struct my_option my_long_options[] = {
335345
"Option automatically turns --lock-tables off.",
336346
&opt_slave_data, &opt_slave_data, nullptr, GET_UINT, OPT_ARG, 0, 0,
337347
MYSQL_OPT_SLAVE_DATA_COMMENTED_SQL, nullptr, 0, nullptr},
348+
{"dump-slave", OPT_MYSQLDUMP_SLAVE_DATA_DEPRECATED,
349+
"This option is deprecated and will be removed in a future version. "
350+
"Use dump-replica instead.",
351+
&opt_slave_data, &opt_slave_data, nullptr, GET_UINT, OPT_ARG, 0, 0,
352+
MYSQL_OPT_SLAVE_DATA_COMMENTED_SQL, nullptr, 0, nullptr},
338353
{"events", 'E', "Dump events.", &opt_events, &opt_events, nullptr, GET_BOOL,
339354
NO_ARG, 0, 0, 0, nullptr, 0, nullptr},
340355
{"extended-insert", 'e',
@@ -400,11 +415,17 @@ static struct my_option my_long_options[] = {
400415
"--ignore-table=database.table.",
401416
nullptr, nullptr, nullptr, GET_STR, REQUIRED_ARG, 0, 0, 0, nullptr, 0,
402417
nullptr},
403-
{"include-source-host-port", OPT_MYSQLDUMP_INCLUDE_MASTER_HOST_PORT,
418+
{"include-source-host-port", OPT_MYSQLDUMP_INCLUDE_SOURCE_HOST_PORT,
404419
"Adds 'MASTER_HOST=<host>, MASTER_PORT=<port>' to 'CHANGE MASTER TO..' "
405420
"in dump produced with --dump-replica.",
406421
&opt_include_master_host_port, &opt_include_master_host_port, nullptr,
407422
GET_BOOL, NO_ARG, 0, 0, 0, nullptr, 0, nullptr},
423+
{"include-master-host-port",
424+
OPT_MYSQLDUMP_INCLUDE_MASTER_HOST_PORT_DEPRECATED,
425+
"This option is deprecated and will be removed in a future version. "
426+
"Use include-source-host-port instead.",
427+
&opt_include_master_host_port, &opt_include_master_host_port, nullptr,
428+
GET_BOOL, NO_ARG, 0, 0, 0, nullptr, 0, nullptr},
408429
{"insert-ignore", OPT_INSERT_IGNORE, "Insert rows with INSERT IGNORE.",
409430
&opt_ignore, &opt_ignore, nullptr, GET_BOOL, NO_ARG, 0, 0, 0, nullptr, 0,
410431
nullptr},
@@ -424,7 +445,7 @@ static struct my_option my_long_options[] = {
424445
"Append warnings and errors to given file.", &log_error_file,
425446
&log_error_file, nullptr, GET_STR, REQUIRED_ARG, 0, 0, 0, nullptr, 0,
426447
nullptr},
427-
{"source-data", OPT_MASTER_DATA,
448+
{"source-data", OPT_SOURCE_DATA,
428449
"This causes the binary log position and filename to be appended to the "
429450
"output. If equal to 1, will print it as a CHANGE MASTER command; if equal"
430451
" to 2, that command will be prefixed with a comment symbol. "
@@ -436,7 +457,12 @@ static struct my_option my_long_options[] = {
436457
"any action on logs will happen at the exact moment of the dump. "
437458
"Option automatically turns --lock-tables off.",
438459
&opt_master_data, &opt_master_data, nullptr, GET_UINT, OPT_ARG, 0, 0,
439-
MYSQL_OPT_MASTER_DATA_COMMENTED_SQL, nullptr, 0, nullptr},
460+
MYSQL_OPT_SOURCE_DATA_COMMENTED_SQL, nullptr, 0, nullptr},
461+
{"master-data", OPT_MASTER_DATA_DEPRECATED,
462+
"This option is deprecated and will be removed in a future version. "
463+
"Use source-data instead.",
464+
&opt_master_data, &opt_master_data, nullptr, GET_UINT, OPT_ARG, 0, 0,
465+
MYSQL_OPT_SOURCE_DATA_COMMENTED_SQL, nullptr, 0, nullptr},
440466
{"max_allowed_packet", OPT_MAX_ALLOWED_PACKET,
441467
"The maximum packet length to send to or receive from server.",
442468
&opt_max_allowed_packet, &opt_max_allowed_packet, nullptr, GET_ULONG,
@@ -890,14 +916,31 @@ static bool get_one_option(int optid, const struct my_option *opt,
890916
case '?':
891917
usage();
892918
exit(0);
893-
case (int)OPT_MASTER_DATA:
919+
case (int)OPT_MASTER_DATA_DEPRECATED:
920+
CLIENT_WARN_DEPRECATED("--master-data", "--source-data");
921+
// FALLTHROUGH
922+
case (int)OPT_SOURCE_DATA:
894923
if (!argument) /* work like in old versions */
895-
opt_master_data = MYSQL_OPT_MASTER_DATA_EFFECTIVE_SQL;
924+
opt_master_data = MYSQL_OPT_SOURCE_DATA_EFFECTIVE_SQL;
896925
break;
897-
case (int)OPT_MYSQLDUMP_SLAVE_DATA:
926+
case (int)OPT_MYSQLDUMP_SLAVE_APPLY_DEPRECATED:
927+
CLIENT_WARN_DEPRECATED("--apply-slave-statements",
928+
"--apply-replica-statements");
929+
break;
930+
case (int)OPT_DELETE_MASTER_LOGS_DEPRECATED:
931+
CLIENT_WARN_DEPRECATED("--delete-master-logs", "--delete-source-logs");
932+
break;
933+
case (int)OPT_MYSQLDUMP_SLAVE_DATA_DEPRECATED:
934+
CLIENT_WARN_DEPRECATED("--dump-slave", "--dump-replica");
935+
// FALLTHROUGH
936+
case (int)OPT_MYSQLDUMP_REPLICA_DATA:
898937
if (!argument) /* work like in old versions */
899938
opt_slave_data = MYSQL_OPT_SLAVE_DATA_EFFECTIVE_SQL;
900939
break;
940+
case (int)OPT_MYSQLDUMP_INCLUDE_MASTER_HOST_PORT_DEPRECATED:
941+
CLIENT_WARN_DEPRECATED("--include-master-host-port",
942+
"--include-source-host-port");
943+
break;
901944
case (int)OPT_OPTIMIZE:
902945
extended_insert = opt_drop = opt_lock = quick = create_options =
903946
opt_disable_keys = lock_tables = opt_set_charset = true;
@@ -1018,7 +1061,7 @@ static int get_options(int *argc, char ***argv) {
10181061

10191062
/* Ensure consistency of the set of binlog & locking options */
10201063
if (opt_delete_master_logs && !opt_master_data)
1021-
opt_master_data = MYSQL_OPT_MASTER_DATA_COMMENTED_SQL;
1064+
opt_master_data = MYSQL_OPT_SOURCE_DATA_COMMENTED_SQL;
10221065
if (opt_single_transaction && opt_lock_all_tables) {
10231066
fprintf(stderr,
10241067
"%s: You can't use --single-transaction and "
@@ -4935,7 +4978,7 @@ static int do_show_master_status(MYSQL *mysql_con) {
49354978
MYSQL_ROW row;
49364979
MYSQL_RES *master;
49374980
const char *comment_prefix =
4938-
(opt_master_data == MYSQL_OPT_MASTER_DATA_COMMENTED_SQL) ? "-- " : "";
4981+
(opt_master_data == MYSQL_OPT_SOURCE_DATA_COMMENTED_SQL) ? "-- " : "";
49394982
if (mysql_query_with_error_report(mysql_con, &master, "SHOW MASTER STATUS")) {
49404983
return 1;
49414984
} else {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
include/save_binlog_position.inc
2+
mysqlbinlog --read-from-remote-source: expect no warning
3+
mysqlbinlog --read-from-remote-master: expect warning
4+
WARNING: --read-from-remote-master is deprecated and will be removed in a future version. Use --read-from-remote-source instead.
5+
mysqldump --apply-replica-statements: expect no warning
6+
mysqldump --apply-slave-statements: expect warning
7+
WARNING: --apply-slave-statements is deprecated and will be removed in a future version. Use --apply-replica-statements instead.
8+
mysqldump --delete-source-logs: expect no warning
9+
mysqldump --delete-master-logs: expect warning
10+
WARNING: --delete-master-logs is deprecated and will be removed in a future version. Use --delete-source-logs instead.
11+
mysqldump --dump-replica: expect no warning
12+
mysqldump --dump-slave: expect warning
13+
WARNING: --dump-slave is deprecated and will be removed in a future version. Use --dump-replica instead.
14+
mysqldump --include-source-host-port: expect no warning
15+
mysqldump --include-master-host-port: expect warning
16+
WARNING: --include-master-host-port is deprecated and will be removed in a future version. Use --include-source-host-port instead.
17+
mysqldump --source-data: expect no warning
18+
mysqldump --master-data: expect warning
19+
WARNING: --master-data is deprecated and will be removed in a future version. Use --source-data instead.
20+
mysqladmin start-replica: expect no warning
21+
mysqladmin start-slave: expect warning
22+
WARNING: start-slave is deprecated and will be removed in a future version. Use start-replica instead.
23+
mysqladmin stop-replica: expect no warning
24+
mysqladmin stop-slave: expect warning
25+
WARNING: stop-slave is deprecated and will be removed in a future version. Use stop-replica instead.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
include/master-slave.inc
2+
Warnings:
3+
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4+
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
5+
[connection master]
6+
==== Init ====
7+
include/suppress_messages.inc
8+
# Connection 1 un-suppresses message <The syntax.*show-.*-auth-info.*is deprecated>.
9+
# Connection 2 un-suppresses message <The syntax.*show-.*-auth-info.*is deprecated>.
10+
include/save_error_log_position.inc
11+
==== R2: show-replica-auth-info ====
12+
include/rpl_restart_server.inc [server_number=1 parameters: --show-replica-auth-info]
13+
[connection slave]
14+
include/wait_for_slave_to_start.inc
15+
[connection master]
16+
* R2.1: No deprecation warning
17+
include/assert_error_log.inc [server: 1, pattern: NONE]
18+
* R2.1, R2.2: Have columns
19+
SHOW REPLICAS;
20+
Server_Id Host User Password Port Source_Id Replica_UUID
21+
2 127.0.0.1 USER PASS REPLICA_PORT 1 REPLICA_UUID
22+
SHOW SLAVE HOSTS;
23+
Server_id Host User Password Port Master_id Slave_UUID
24+
2 127.0.0.1 USER PASS REPLICA_PORT 1 REPLICA_UUID
25+
Warnings:
26+
Warning 1287 'SHOW SLAVE HOSTS' is deprecated and will be removed in a future release. Please use SHOW REPLICAS instead
27+
==== R3: show-slave-auth-info ====
28+
include/assert_error_log.inc [server: 1, pattern: NONE]
29+
include/rpl_restart_server.inc [server_number=1 parameters: --show-slave-auth-info]
30+
[connection slave]
31+
include/wait_for_slave_to_start.inc
32+
[connection master]
33+
* R3.1: Deprecation warning
34+
include/assert_error_log.inc [server: 1, pattern: The syntax 'show-slave-auth-info' is deprecated and will be removed in a future release. Please use show-replica-auth-info instead.]
35+
* R3.2, R3.3: Have columns
36+
SHOW REPLICAS;
37+
Server_Id Host User Password Port Source_Id Replica_UUID
38+
2 127.0.0.1 USER PASS REPLICA_PORT 1 REPLICA_UUID
39+
SHOW SLAVE HOSTS;
40+
Server_id Host User Password Port Master_id Slave_UUID
41+
2 127.0.0.1 USER PASS REPLICA_PORT 1 REPLICA_UUID
42+
Warnings:
43+
Warning 1287 'SHOW SLAVE HOSTS' is deprecated and will be removed in a future release. Please use SHOW REPLICAS instead
44+
==== R1: no command-line options ====
45+
include/rpl_restart_server.inc [server_number=1]
46+
[connection slave]
47+
include/wait_for_slave_to_start.inc
48+
[connection master]
49+
* R1.1: No deprecation warning
50+
include/assert_error_log.inc [server: 1, pattern: NONE]
51+
* R1.2, R1.3: No columns
52+
SHOW REPLICAS;
53+
Server_Id Host Port Source_Id Replica_UUID
54+
2 127.0.0.1 REPLICA_PORT 1 REPLICA_UUID
55+
SHOW SLAVE HOSTS;
56+
Server_id Host Port Master_id Slave_UUID
57+
2 127.0.0.1 REPLICA_PORT 1 REPLICA_UUID
58+
Warnings:
59+
Warning 1287 'SHOW SLAVE HOSTS' is deprecated and will be removed in a future release. Please use SHOW REPLICAS instead
60+
==== Clean up ====
61+
include/rpl_end.inc

mysql-test/suite/rpl/rpl_1slave_base.cnf

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ loose-innodb_read_io_threads= 2
3333

3434
master-retry-count= 10
3535

36-
# Values reported by slave when it connect to master
37-
# and shows up in SHOW SLAVE STATUS;
36+
# Values reported by source when a replica has connected and shows up
37+
# in SHOW REPLICAS.
3838
report-host= 127.0.0.1
3939
report-port= @mysqld.2.port
4040
report-user= root
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--report-user=USER
2+
--report-password=PASS

0 commit comments

Comments
 (0)