8 our @EXPORT = qw( &connectDb );
11 my ( $uri, $user, $passwd ) = confList( [ "dburi", "dbuser", "dbpasswd" ] );
12 my $result = DBI->connect( $uri, $user, $passwd, { 'AutoCommit' => 0, 'RaiseError' => 1, 'PrintError' => 0 } ) or die "Could not connect to database $uri (".DBI->errstr.")\n";
15 checkConf( [ "dbuser", "dbpasswd" ] );
16 defConf( { "dbname" => "pciids" } );
17 defConf( { "dburi" => "dbi:mysql:".$config{"dbname"} } );