5 lines
278 B
Perl
5 lines
278 B
Perl
|
$dbh= DBI->connect("dbi:<RDMS>:<database>","<username>","<password>",\%attributes) or die("Couldn't connect");
|
||
|
|
||
|
$dbh=DBI->connect('DBI:mysql:sample_db','root','quigley1') or die "Can't connect";
|
||
|
|
||
|
$dbh=DBI->connect('DBI:mysql:database=sample_db;user=root;password=quigley1');
|