📄 master-slave.inc
字号:
connect (master,127.0.0.1,root,,test,$MASTER_MYPORT,);connect (master1,127.0.0.1,root,,test,$MASTER_MYPORT,);connect (slave,127.0.0.1,root,,test,$SLAVE_MYPORT,);connect (slave1,127.0.0.1,root,,test,$SLAVE_MYPORT,);connection slave;#we expect STOP SLAVE to produce a warning as the slave is stopped#(the server was started with skip-slave-start)--disable_warningsstop slave;--enable_warnings--require r/slave-stopped.result show status like 'Slave_running';connection master;--disable_warningsdrop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;--enable_warningsreset master;connection slave;reset slave;# Clean up old test tables--disable_warningsdrop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;--enable_warningsstart slave;--require r/slave-running.resultshow status like 'Slave_running';# Set the default connection to 'master'connection master;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -