blob: 6dcbf99f0ea083631efaf51074b7e5df71c5e2ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
*** mythweb-unpatched.pl 2009-06-02 14:55:24.011861459 -0400
--- mythweb.pl 2009-06-02 14:56:24.386441304 -0400
***************
*** 49,57 ****
# Connect to the database
END { $dbh->disconnect() if ($dbh); }
! our $dbh = DBI->connect("dbi:mysql:database=$ENV{'db_name'}:host=$ENV{'db_server'}",
! $ENV{'db_login'},
! $ENV{'db_password'});
unless ($dbh) {
print header(),
"Cannot connect to database: $!\n\n";
--- 49,57 ----
# Connect to the database
END { $dbh->disconnect() if ($dbh); }
! our $dbh = DBI->connect("dbi:mysql:database=$ENV{'DB_NAME'}:host=$ENV{'DB_SERVER'}",
! $ENV{'DB_LOGIN'},
! $ENV{'DB_PASSWORD'});
unless ($dbh) {
print header(),
"Cannot connect to database: $!\n\n";
|