How to shut down the mysql slave server

  1. Log in to mysql as the root user and execute the STOP SLAVE statement.
  2. Use SHOW STATUS to check the value of the slave_open_temp_tables variable.
  3. If the value is 0, use the mysqladmin shutdown command to shut down the slave server.
  4. If the value is not 0, restart the slave server thread with START SLAVE.
  5. Repeat the above process later to see if it can be shut down normally

Guess you like

Origin blog.csdn.net/lx1848/article/details/77619937