In the last episode (Nov 29), Ted Yu said: > By username I mean Linux login. Is there a way to call Perl/Shell > script to obtain this information ?
Won't work for remote users, of course. If you were on *BSD, AIX, or Solaris you could write a UDF that called the getpeereid() or getpeerucred() libc function to fetch the username for unix-socket connections. On Linux you will need to call getsockopt() with the SO_PEERCRED option. -- Dan Nelson [EMAIL PROTECTED] -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]