in reply to Re^2: DBI lost connection
in thread DBI lost connection

Can you replicate the problem by switching to DBD::MariaDB?