$dbh = DBI->connect("DBI:mysql:database=$dbname:$server", $username, $password); $dbh->{mysql_auto_reconnect} = 1;