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.

-----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?


I am using mySQL.  Is there any java method that can distinguish these
computers?

-----Original Message-----
From: Reynir H�bner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 6:55 PM
To: Tomcat Users List
Subject: RE: How can I tell who is connecting to the database?


dependes on the database you are using I guess..
.. which one are you using ?




> -----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
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>

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



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

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



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

Reply via email to