Mysql reconnect patch

Same as #206 but for master instead of folsom