Add variables sql_check which control whether sql_check mode is enabled.
If set to 0, the server act as normal, otherwise, the server will
act as a check server.