programming-examples/perl/Database/Connect to mysql.pl
2019-11-15 12:59:38 +01:00

3 lines
168 B
Perl

$dsn = dbi:mysql:northwind; $username="root"; $password="letmein";
$dbh = DBI->connect($dsn, $user, $password,{ PrintError => 0, RaiseError => 1, AutoCommit => 0 });