connect using mysql socket if local, else use host/port