fix mysql connect bug