List Info

Thread: warning with mysql




warning with mysql
user name
2007-06-26 20:31:14
Hello, I was trying to install ossim in a debian box, I followed the steps of the "Install guide for ossim on Debian GUN/linux" on the official web. When I finished the 4.2 "apt-get install ossim-framework" and "dpkg-reconfigure php4-cli php4-domxml php4-gd php4-mysql php4-xslt", I accessed the framework [ http://yourhost/ossim/ ], and there was the warning:
 
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root''localhost'">'root''localhost' (using password: YES) in /usr/share/php/adodb/drivers/adodb- mysql.inc.php on line 358
 
The  content of  /usr/share/php/adodb/drivers/adodb-mysql.inc.php is as follow :
 ;
function _connect($argHostname, $argUsername, $argPassword, $argDatabasename)
 {
  if (!empty($this->port)) $argHostname .= ":".$this->port;
  
  ;if (ADODB_PHPVER >= 0x4300)
   $this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword,
         ;   $this->forceNewConnect,$this->clientFlags);         ;           ;           ;           ;           ;      358
  else if (ADODB_PHPVER >= 0x4200)
   $this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword,
         ;   $this->forceNewConnect);
  else
   $this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword);
 
  if ($this->;_connectionID === false) return false;
  if ($argDatabasename) return $this->SelectDB($argDatabasename);
  return true; ;
 }
 
Please tell me what should I do, thanks a lot
  
Re: warning with mysql
user name
2007-06-27 02:14:31
Before checking adodb for errors I'd make 100% sure:

- You can access the mysql db server with the configured user(s) (check phpgacl_* setup, ossim_* setup as well as snort_*). Specially snort related ossim configuration entries were not correctly set during last update, you might want to change this first (either at /etc/ossim/framework/ossim.conf or trying to find the Configuration -> Main menu by scrolling the top frame.

Greetings,

Dominique

Am 27.06.2007 um 03:31 schrieb UltraStar UltraStar:

Hello, I was trying to install ossim in a debian box, I followed the steps of the "Install guide for ossim on Debian GUN/linux" on the official web. When I finished the 4.2 "apt-get install ossim-framework" and "dpkg-reconfigure php4-cli php4-domxml php4-gd php4-mysql php4-xslt", I accessed the framework [ http://yourhost/ossim/ ], and there was the warning:
 
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root''localhost'">'root''localhost' (using password: YES) in /usr/share/php/adodb/drivers/adodb- mysql.inc.php on line 358
 
The  content of  /usr/share/php/adodb/drivers/adodb-mysql.inc.php is as follow :
 
function _connect($argHostname, $argUsername, $argPassword, $argDatabasename)
 {
  if (!empty($this->port)) $argHostname .= ":".$this->port;
  
  if (ADODB_PHPVER >= 0x4300)
   $this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword,
            $this->forceNewConnect,$this->clientFlags);                                                           358
  else if (ADODB_PHPVER >= 0x4200)
   $this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword,
            $this->forceNewConnect);
  else
   $this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword);
 
  if ($this->;_connectionID === false) return false;
  if ($argDatabasename) return $this->SelectDB($argDatabasename);
  return true; 
 }
 
Please tell me what should I do, thanks a lot
<adodb-mysql.inc.php>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
Os-sim-support mailing list
Os-sim-supportlists.sourceforge.net">Os-sim-supportlists.sourceforge.net

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )