r8805: add automatic mysql client detection