Check MySQL major and minor version properly