master-slave.inc

来自「开启mysql的远程连接的方法 mysql-noinstall-5.1.6-al」· INC 代码 · 共 30 行

INC
30
字号
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 + =
减小字号Ctrl + -
显示快捷键?