[mysql] Make compatible with v0.9.x of mysql module