How to get current user’s username logged in mysql table ?

Hi,

I’m using a trigger to insert data in one of my tables after an update from the front-end (WPdatatables).

One columns is NOW()
and CURRENT_USER() but it logs the user connected to the database.

And I’d like to get the current user’s username inserted. How can I get it ?

Thanks for your help



Source link