| 1 |
include/master-slave.inc |
| 2 |
[connection master] |
| 3 |
set global max_connections=151; |
| 4 |
connection slave; |
| 5 |
include/stop_slave.inc |
| 6 |
include/start_slave.inc |
| 7 |
connection master; |
| 8 |
connection slave; |
| 9 |
show variables like 'init_slave'; |
| 10 |
Variable_name Value |
| 11 |
init_slave set global max_connections=500 |
| 12 |
show variables like 'max_connections'; |
| 13 |
Variable_name Value |
| 14 |
max_connections 500 |
| 15 |
reset master; |
| 16 |
connection master; |
| 17 |
show variables like 'init_slave'; |
| 18 |
Variable_name Value |
| 19 |
init_slave |
| 20 |
show variables like 'max_connections'; |
| 21 |
Variable_name Value |
| 22 |
max_connections 151 |
| 23 |
connection slave; |
| 24 |
set @my_global_init_connect= @@global.init_connect; |
| 25 |
set global init_connect="set @c=1"; |
| 26 |
show variables like 'init_connect'; |
| 27 |
Variable_name Value |
| 28 |
init_connect set @c=1 |
| 29 |
connection master; |
| 30 |
connection slave; |
| 31 |
set global init_connect= @my_global_init_connect; |
| 32 |
set global max_connections= default; |
| 33 |
include/rpl_end.inc |