Linux下perl联postgrestest.pl中:
use DBI;
$dbh = DBI->connect('dbi:Pg:ebook','postgres','postgres');执行perl test.pl
出错信息:
DBI connect('ebook','postgres',...) failed: missing "=" after "ebook" in connection info string at test.pl line 10
Cannot connect to DB server: missing "=" after "ebook" in connection info string
DBI,DBD都安装了
数据库没问题,用其他方法联的通。
是连接语句不对吗?
应该怎么写?
use DBI;
$dbh = DBI->connect('dbi:Pg:ebook','postgres','postgres');执行perl test.pl
出错信息:
DBI connect('ebook','postgres',...) failed: missing "=" after "ebook" in connection info string at test.pl line 10
Cannot connect to DB server: missing "=" after "ebook" in connection info string
DBI,DBD都安装了
数据库没问题,用其他方法联的通。
是连接语句不对吗?
应该怎么写?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货