Hi,

> -----Original Message-----
> From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 13, 2002 6:22 PM
> To: Tomcat Users List
> Subject: RE: How can I tell who is connecting to the database?
> 
> 
> Is there a way to do it that is database independent?  Our 
> application needs
> to track this information for login purposes, and I would like to keep
> everything inside the actual java code.
> 

Well, I think it will require some coding. Just a suggestion:
You could wrap the operations you need to monitor and do
some logging in those wrappers.

> -----Original Message-----
> From: Dahnke, Eric [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 13, 2002 10:07 AM
> To: 'Tomcat Users List'
> Subject: RE: How can I tell who is connecting to the database?
> 
> 
> 
> You can turn on logging with MySQL with the -l flag. I'll assume you're
> running on a unix* system.
> 
> Where MySQL starts up add a -l flag to it. Below is how it is on 
> my machine
> (linux RPM install)
> 
> $bindir/safe_mysqld -l --datadir=$datadir --pid-file=$pid_file &
> 
> then your log file will be created in /var/lib/mysql/your_host_name.log
> 
> HTH
> 
> -----Original Message-----
> From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 13, 2002 10:59 AM
> To: Tomcat Users List
> Subject: RE: How can I tell who is connecting to the database?
> 
> 
> > -----Original Message-----
> > From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> > Sent: 13. febr?ar 2002 01:00
> > To: Tomcat Users List
> > Subject: How can I tell who is connecting to the database?
> >
> >
> > If several developers are connecting to the database using
> > tomcat 3.2.4 on
> > localhost, is there a way to tell which computer is actually
> > connecting?
> > When I try to get IP, it is always the same since they are at
> > localhost.
> >
> > Please help!!!
> >
> > Brandon
> >
> >

Anton

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to