X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=maps%2Fbin%2FMAPSDB.pm;h=8dd79ace6c2e104511e8902f05eb1f8179dd25c4;hb=f4cba91d9cce314c632afe2e05987670c0d1813e;hp=74b1302f6a9bbc726e9480e3363a4468439721da;hpb=020a4a5ea2be725b155cae3a2cadc9aba3911b9b;p=clearscm.git diff --git a/maps/bin/MAPSDB.pm b/maps/bin/MAPSDB.pm index 74b1302..8dd79ac 100644 --- a/maps/bin/MAPSDB.pm +++ b/maps/bin/MAPSDB.pm @@ -814,10 +814,10 @@ sub OpenDB ($$) { my $dbname = 'MAPS'; my $dbdriver = 'mysql'; - my $dbserver = $ENV{MAPS_SERVER} ? $ENV{MAPS_SERVER} : 'jupiter'; + my $dbserver = $ENV{MAPS_SERVER} || 'jupiter'; if (!$DB || $DB eq '') { - $dbserver='localhost'; + #$dbserver='localhost'; $DB = DBI->connect("DBI:$dbdriver:$dbname:$dbserver", $username, $password, {PrintError => 0}) or die "Couldn't connect to $dbname database as $username\n" . $DBI::errstr; } # if