add detect method for mysql packet