in reply to Re: Reconnecting to a mysqldb
in thread Reconnecting to a mysqldb

However, any per connection variables that you have set will have been forgotten in the reconnect, eg

SET NAMES "utf8";

After the reconnect, NAMES will be back to the default.