Bug 232 - Change DB_SERVER to DB_HOST
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1682 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
b6b382a487
commit
36b481d2e6
|
@ -73,7 +73,7 @@ BEGIN
|
||||||
close( CONFIG );
|
close( CONFIG );
|
||||||
|
|
||||||
use DBI;
|
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 $sql = "select * from Config";
|
||||||
my $sth = $dbh->prepare_cached( $sql ) or die( "Can't prepare '$sql': ".$dbh->errstr() );
|
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() );
|
my $res = $sth->execute() or die( "Can't execute: ".$sth->errstr() );
|
||||||
|
|
Loading…
Reference in New Issue