Ad Widget

Collapse

Some DB error after installed zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Frank_Ng
    Junior Member
    • Dec 2008
    • 6

    #1

    Some DB error after installed zabbix

    Hi there

    I've got a error through web based after installed, there was shown me the error message as
    Parse error: syntax error, unexpected T_DNUMBER in /usr/share/zabbix/include/db.inc.php on line 32

    I had checked the db.inc.php and no idea to solve it. So herewith any code from db.inc.php in there.

    // DATABASE CONFIGURATION
    include_once("/etc/zabbix/dbconfig.php");
    // END OF DATABASE CONFIGURATION

    // $USER_DETAILS ="";
    global $USER_DETAILS;

    if($DB_TYPE == "MYSQL")
    {
    $DB=mysql_pconnect(127.0.0.1,root,abc123);
    if(!mysql_select_db($DB_DATABASE))
    {
    echo "Error connecting to database [".mysql_error()."]";
    exit;
    }
    mysql_select_db($DB_DATABASE);
    }
    if($DB_TYPE == "POSTGRESQL")
    {
    $DB=pg_pconnect("host='$DB_SERVER' dbname='$DB_DATABASE' user='$DB_USER' password='$DB_PASSWORD'");
    if(!$DB)
    {
    echo "Error connecting to database";
    exit;
    }


    Many thanks
    Frank
Working...