code: func tableUserExists(ctx sessionctx.Context, name string, host string, db string, tbl string) (bool, error) {
  	sql := fmt.Sprintf(`SELECT * FROM %s.%s WHERE User='%s' AND Host='%s' AND DB='%s' AND Table_name='%s';`, mysql.SystemDB, mysql.TablePrivTable, name, host, db, tbl)
  	return recordExists(ctx, sql)
  }
docs: // tableUserExists checks if there is an entry with key user-host-db-tbl in mysql.Tables_priv.