From 36b481d2e62376a6072ea507829d7995aa881bf8 Mon Sep 17 00:00:00 2001 From: stan Date: Fri, 16 Dec 2005 10:37:13 +0000 Subject: [PATCH] Bug 232 - Change DB_SERVER to DB_HOST git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1682 e3e1d417-86f3-4887-817a-d78f3d33393f --- scripts/ZoneMinder/lib/ZoneMinder.pm.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder.pm.in b/scripts/ZoneMinder/lib/ZoneMinder.pm.in index c49e37251..bcf5141fa 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder.pm.in +++ b/scripts/ZoneMinder/lib/ZoneMinder.pm.in @@ -73,7 +73,7 @@ BEGIN close( CONFIG ); use DBI; - my $dbh = DBI->connect( "DBI:mysql:database=".&ZM_DB_NAME.";host=".&ZM_DB_SERVER, &ZM_DB_USER, &ZM_DB_PASS ); + my $dbh = DBI->connect( "DBI:mysql:database=".&ZM_DB_NAME.";host=".&ZM_DB_HOST, &ZM_DB_USER, &ZM_DB_PASS ); my $sql = "select * from Config"; my $sth = $dbh->prepare_cached( $sql ) or die( "Can't prepare '$sql': ".$dbh->errstr() ); my $res = $sth->execute() or die( "Can't execute: ".$sth->errstr() );