IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42571


Ignore:
Timestamp:
Dec 24, 2023, 9:43:38 AM (3 years ago)
Author:
eugene
Message:

fix PDO dsn entry for ippMonitor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/ippMonitor/raw/ipp.php

    r42384 r42571  
    100100  // define the DSN strings. NOTE: PDO uses a different format from DB or MDB2
    101101  if ($database == $CZARDBNAME) {
    102     $dsn_pdo = "mysql:host=$DBHOST;dbname=$database";
     102    $dsn_pdo = "mysql:host=$CZARDBHOST;dbname=$database"; // note this is case sensitive
    103103    $dsn = "mysql://$DBUSER:$DBPASS@$CZARDBHOST/$database";
    104104    $dsnerr = "mysql://$DBUSER:XXX@$CZARDBHOST/$database"; // only used to report the error
    105105  } else {
    106     $dsn_pdo = "mysql:host=$CZARDBHOST;dbname=$database"; // note this is case sensitive
     106    $dsn_pdo = "mysql:host=$DBHOST;dbname=$database";
    107107    $dsn = "mysql://$DBUSER:$DBPASS@$DBHOST/$database";
    108108    $dsnerr = "mysql://$DBUSER:XXX@$DBHOST/$database"; // only used to report the error
Note: See TracChangeset for help on using the changeset viewer.