fix mysql reconnect
Merge pull request #189 from evgk/fix_mysql_reconnect

fix mysql reconnect