convert mysql to xyz