On 15 Aug 2001 14:03:11 +0100, Nick Avenell wrote: > On Wed, 15 Aug 2001 06:50:04 +0200, in linux.debian.user you wrote: > > >On 14 Aug 2001 22:58:09 +0100, Nick Avenell wrote: > >> I tried to install TCPQuota on my woody box (sacrifice) tonight, and > >> couldn't. This is what happened: > *snip* > >> sacrifice:~# tcpquotad > >> sacrifice:~# DBI->connect(tcpquota:localhost:3306) failed: Access > >> denied for user: '[EMAIL PROTECTED]' (Using password: NO) at > >> /usr/sbin/tcpquotad line 376 > >It appears that the script is not giving the correct option/password to > >mysql because the log says Using password: NO. What does line 376 look > >like? > >--mike > > ---------fragment of /usr/sbin/tcpquotad -------------- > > ###################################################################### > # > # proc: init_sql_server() > # > # Open a connection to the SQL database... > # > sub init_sql_server { > undef( $dbh ); > > # Open up the database connection... > $dbh = DBI->connect("dbi:$cf{'ENGINE'}:tcpquota:$cf{'SERVER'}"); > > -------------------end fragment------------------------ > > (Last line is 376)
Looks like its inheriting definitions from the cf file. What do ENGINE and SERVER get defined as at the top of this file or in the config file for the system. I'm not familiar with this package or the perl-dbi which this package appears to be using. Perhaps the password is not getting asked or answered in this line somehow. --mike