connect mysql when add apn_mng