title: Trigger-Problems in HeidiSQL with using MariaDB (Current_User)
body: <p>after hours of testing and searching for a solution of my trigger-problem without progress, I hope I'll get an advice from the community:</p>
  
  <p>I created a database in MariaDB using HeidiSQL as frontend. Now, there's the possibility to create triggers, and I want to create an insert-trigger to get the User() - but it doesn't work. I get all the time "root@localhost" instead  of the User.</p>
  
  <p>One Problem is, I cannot change the definer because it's a fixed parameter from HeidiSQL. I attached a few pictures of the frontend. When I change the definer in "user@%", I receive an error in my Java program as follows:</p>
  
  <p>java.sql.SQLException: The user specified as a definer ('User'@'%') does not exist</p>
  
  <p>I also tried the function Current_User(), but unfortunately without success. In this case, I just receive the Name of the Definer of the trigger, but not the User() of the Database.</p>
  
  <p>Thank you in advance for your support!</p>
  
  <p><a href="https://i.stack.imgur.com/kKMpB.png" rel="nofollow noreferrer">Trigger without definer in HeidiSQL</a></p>
  
  <p><a href="https://i.stack.imgur.com/ePVFg.png" rel="nofollow noreferrer">Trigger with definer in HeidiSQL</a></p>
  
  <p><a href="https://i.stack.imgur.com/3NePx.png" rel="nofollow noreferrer">Creating Trigger-Tool in HeidiSQL</a></p>