detach mysql process