Add reconnect api to allow mysql reconnect locations.