13.7.8.6 RESET Statement语句

RESET reset_option [, reset_option] ...
reset_option: {
    MASTER
  | REPLICA
  | SLAVE
}

The RESET statement is used to clear the state of various server operations. RESET语句用于清除各种服务器操作的状态。You must have the RELOAD privilege to execute RESET.您必须具有RELOAD权限才能执行RESET

For information about the RESET PERSIST statement that removes persisted global system variables, see Section 13.7.8.7, “RESET PERSIST Statement”.有关删除持久化全局系统变量的RESET PERSIST语句的信息,请参阅第13.7.8.7节,“RESET PERSIST语句”

RESET acts as a stronger version of the FLUSH statement. RESET充当FLUSH语句的更强大版本。See Section 13.7.8.3, “FLUSH Statement”.请参阅第13.7.8.3节,“FLUSH语句”

The RESET statement causes an implicit commit. RESET语句导致隐式提交。See Section 13.3.3, “Statements That Cause an Implicit Commit”.请参阅第13.3.3节,“导致隐式提交的语句”

The following list describes the permitted RESET statement reset_option values:以下列表描述了允许的RESET语句reset_option值: