Add detecting mysql via reg.