reconnect a closed mysql connection