Snort mailing list archives

RE: postgres and acid


From: "neal" <ntimm () austin rr com>
Date: Wed, 5 Dec 2001 12:34:56 -0600

Never mind I finally got it.
 
-----Original Message-----
From: snort-users-admin () lists sourceforge net
[mailto:snort-users-admin () lists sourceforge net] On Behalf Of neal
Sent: Wednesday, December 05, 2001 9:16 AM
To: snort-users () lists sourceforge net
Subject: [Snort-users] postgres and acid
 
Hello I'm not to familiar with postgres and and getting this error when
trying to connect to acid.  Running redhat 7.2 postgres 7 and snort
1.8.3 snort has no problem connecting as I can see data in the data base
just having the problem viewing through acid any help would be
appreciated.
 
Thanks.
 
Getting this error
Unable to connect to PostgreSQL server: (null) in
/var/www/html/snort/adodb-postgres.inc.php on line 190
 
The last line here is 190.
function _pconnect($str,$user='ntimm',$pwd='',$db='snort')
        {
                if ($user || $pwd || $db) {
                        if ($str)  {
                                $host = split(":", $str);
                                if ($host[0]) $str = "host=$host[0]";
                                else $str = 'localhost';
                                if (isset($host[1])) $str .= "
port=$host[1]";
                        }
                        if ($user) $str .= " user=".$user;
                        if ($pwd)  $str .= " password=".$pwd;
                        if ($db)   $str .= " dbname=".$db;
                }
                $this->_connectionID = pg_pconnect($str);

Current thread: