$dsn = dbi:mysql:northwind; $username="root"; $password="letmein"; $dbh = DBI->connect($dsn, $user, $password,{ PrintError => 0, RaiseError => 1, AutoCommit => 0 });
来源: http://www.phpxs.com/code/1006346/