mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
A slave now can optionally register with the master providing the
info on how to connect to the slave for the clients that connect to the master, but would like to know where the slaves are include/mysql_com.h: register slaves mysql-test/mysql-test-run.sh: parameters to test slave registration mysql-test/r/rpl000002.result: test of slave registration mysql-test/t/rpl000002.test: test slave registration sql/mysql_priv.h: slave registration sql/mysqld.cc: slave registration sql/slave.cc: slave registration sql/slave.h: slave registration sql/sql_lex.h: slave registration sql/sql_parse.cc: slave registration sql/sql_repl.cc: slave registration sql/sql_repl.h: slave registration sql/sql_yacc.yy: slave registration
This commit is contained in:
@ -520,6 +520,8 @@ start_slave()
|
||||
--tmpdir=$MYSQL_TMP_DIR \
|
||||
--language=english \
|
||||
--skip-innodb --skip-slave-start \
|
||||
--report-host=127.0.0.1 --report-user=root \
|
||||
--report-port=$SLAVE_MYPORT \
|
||||
$SMALL_SERVER \
|
||||
$EXTRA_SLAVE_OPT $EXTRA_SLAVE_MYSQLD_OPT"
|
||||
if [ x$DO_DDD = x1 ]
|
||||
|
@ -2,6 +2,8 @@ n
|
||||
2000
|
||||
2001
|
||||
2002
|
||||
Server_id Host User Password Port
|
||||
2 127.0.0.1 root 9307
|
||||
id created
|
||||
1 1970-01-01 06:25:45
|
||||
id created
|
||||
|
@ -11,6 +11,7 @@ use test;
|
||||
sync_with_master;
|
||||
select * from t1;
|
||||
connection master;
|
||||
show slave hosts;
|
||||
drop table t1;
|
||||
save_master_pos;
|
||||
connection slave;
|
||||
|
Reference in New Issue
Block a user