mysql compile rules