use DBI; my $dbh = DBI->connect( 'dbi:mysql:tickets@webhost.mydomain.org:3306', 'someuser', 'somepass', { RaiseError => 1, AutoCommit => 1 } );