diff --git a/sql/auth/sql_authorization.cc b/sql/auth/sql_authorization.cc --- a/sql/auth/sql_authorization.cc +++ b/sql/auth/sql_authorization.cc @@ -1829,7 +1829,7 @@ bool check_readonly(THD *thd, bool err_if_readonly) { Thread is replication slave or skip_read_only check is enabled for the command, do not prohibit operation. */ - if (thd->slave_thread || thd->is_cmd_skip_readonly()) return false; + if (thd->slave_thread || thd->is_cmd_skip_readonly() || thd->is_system_thread()) return false; Security_context *sctx = thd->security_context(); bool is_super =