my $dbh = DBI->connect("dbi:mysql:table","user","password", {AutoCommit => 1, RaiseError => 1}) or die die "Can\'t connect: ",$DBI::errstr;