MySQL Forums
Forum List  »  Triggers

Re: Trigger to capture connection information
Posted by: Peter Brawley
Date: November 21, 2015 04:33PM

In the mysql client program, there's the status command.

Much of that info can be assembled from SHOW cmds, eg ...

SHOW VARIABLES WHERE Variable_name = 'port';
SHOW VARIABLES WHERE Variable_name = 'port';
show status like "%connect%";
select user(), version();
etc ...

None of it would work in a Trigger, which can't run such cmds.

And each API has its own funcs for showing connection specifics.



Edited 1 time(s). Last edit at 11/21/2015 04:34PM by Peter Brawley.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Trigger to capture connection information
973
November 21, 2015 04:33PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.