3 # Provide a earier way to restart SQL thread when you want to stop sql thread
4 # and then start it immediately.
6 # Sources stop_slave_sql.inc to stop SQL thread on the current connection.
7 # Then issues START SLAVE SQL_THREAD and then waits until
8 # the SQL threads have started, or until a timeout is reached.
10 # Please use this instead of 'STOP|START SLAVE SQL_THREAD', to reduce the risk of
16 # [--let $slave_timeout= NUMBER]
17 # [--let $rpl_debug= 1]
18 # --source include/restart_slave_sql.inc
22 # See include/wait_for_slave_param.inc
25 # See include/rpl_init.inc
28 --let $include_filename= restart_slave.inc
29 --source include/begin_include_file.inc
37 source include/stop_slave_sql.inc;
38 START SLAVE SQL_THREAD;
39 source include/wait_for_slave_sql_to_start.inc;
42 --let $include_filename= restart_slave.inc
43 --source include/end_include_file.inc