⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rpl_change_master.test

📁 这是linux下运行的mysql软件包,可用于linux 下安装 php + mysql + apach 的网络配置
💻 TEST
字号:
# Verify that after CHANGE MASTER, replication (I/O thread and SQL# thread) restart from where SQL thread left, not from where# I/O thread left (some old bug fixed in 4.0.17)source include/master-slave.inc;connection master;# Make SQL slave thread advance a bitcreate table t1(n int);sync_slave_with_master;select * from t1;# Now stop it and make I/O slave thread be aheadstop slave sql_thread;connection master;insert into t1 values(1);insert into t1 values(2);save_master_pos;connection slave;--real_sleep 3 # wait for I/O thread to have read updatesstop slave;--replace_result $MASTER_MYPORT MASTER_MYPORT--replace_column 1 # 8 # 9 # 23 # 33 #show slave status;change master to master_user='root';--replace_result $MASTER_MYPORT MASTER_MYPORT--replace_column 1 # 8 # 9 # 23 # 33 #show slave status;start slave;sync_with_master;select * from t1;connection master;drop table t1;save_master_pos;connection slave;sync_with_master;# End of 4.1 tests

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -