fix Uri and mysql reconnect bug