我有一个需要连接到Lotus Notes数据库的Perl / DBI程序。安装NotesSQL后,该程序可以正常工作,但会一直提示我输入Notes密码。有没有办法以编程方式传递Notes标识和密码?我正在使用ActiveState Perl 5.8.8,Notes 8.5和NotesSQL 8.0。
答案 0 :(得分:1)
请参阅DBI->connect:
$dbh = DBI->connect($data_source, $username, $password) or die $DBI::errstr;
或
$dbh = DBI->connect($data_source, $username, $password, \%attr) or die $DBI::errstr;