mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
4a7af05c7f
BitKeeper/deleted/.del-compile-ia64-O0-sgicc~a4e0732013d6b602: Delete: BUILD/compile-ia64-O0-sgicc BitKeeper/deleted/.del-compile-ia64-O0~3a41dfebefc817d1: Delete: BUILD/compile-ia64-O0 BitKeeper/deleted/.del-compile-ia64-O2-sgicc~6ff796ecac337849: Delete: BUILD/compile-ia64-O2-sgicc BitKeeper/deleted/.del-compile-ia64-O2~87d13594c3599830: Delete: BUILD/compile-ia64-O2 BitKeeper/deleted/.del-compile-ia64-O6~c34e6b943b12c468: Delete: BUILD/compile-ia64-O6 Docs/manual.texi: Cleanup mysql-test/r/rpl000014.result: Change port number for comparison mysql-test/r/rpl000015.result: Change port number for comparison mysql-test/r/rpl000016.result: Change port number for comparison mysql-test/t/rpl000014.test: Change port number for comparison mysql-test/t/rpl000015.test: Change port number for comparison mysql-test/t/rpl000016.test: Change port number for comparison sql-bench/Results/ATIS-mysql-NT_4.0: New test results sql-bench/Results/RUN-mysql-NT_4.0: New test results sql-bench/Results/alter-table-mysql-NT_4.0: New test results sql-bench/Results/big-tables-mysql-NT_4.0: New test results sql-bench/Results/connect-mysql-NT_4.0: New test results sql-bench/Results/create-mysql-NT_4.0: New test results sql-bench/Results/insert-mysql-NT_4.0: New test results sql-bench/Results/select-mysql-NT_4.0: New test results sql-bench/Results/wisconsin-mysql-NT_4.0: New test results sql/slave.cc: Removed not used variable
34 lines
898 B
Text
34 lines
898 B
Text
connect (master,localhost,root,,test,0,mysql-master.sock);
|
|
connect (slave,localhost,root,,test,0, mysql-slave.sock);
|
|
connection master;
|
|
reset master;
|
|
show master status;
|
|
save_master_pos;
|
|
connection slave;
|
|
reset slave;
|
|
show slave status;
|
|
change master to master_host='127.0.0.1';
|
|
--replace_result 3306 9998 9306 9999 3334 9999 3335 9999
|
|
show slave status;
|
|
eval change master to master_host='127.0.0.1',master_user='root',
|
|
master_password='',master_port=$MASTER_MYPORT;
|
|
--replace_result 9306 9999 3334 9999 3335 9999
|
|
show slave status;
|
|
slave start;
|
|
sync_with_master;
|
|
--replace_result 9306 9999 3334 9999 3335 9999
|
|
show slave status;
|
|
connection master;
|
|
drop table if exists t1;
|
|
create table t1 (n int);
|
|
insert into t1 values (10),(45),(90);
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
select * from t1;
|
|
connection master;
|
|
drop table t1;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
|