Auto-detect MySQL flavor.
Merge branch 'detect'