mysql socket error fix

but not sure if it is working correct on our server.