MySQL opens and closes remote access