add new function of mysql_repl_check