Quantcast
Channel: VBForums - Database Development
Viewing all articles
Browse latest Browse all 2918

MySQL 5.7 - Trigger on mysql.user

$
0
0
Hi Folks,

first experience with MySQL.

Question: Is it possible to create a Trigger on mysql.user?
mysql.user is a base_table but with the MyISAM-Engine (as opposed to InnoDB for my own base_tables)

Background: I'm writing a Frontend to a MySQL-DB, where depending on the used Login (Name@Host) a different Start-Window should pop up.
So my Idea was to create a Table in my Database, but everytime the "root" creates a new User, this UserName (and Host) is automatically inserted into my own table, where the Startwindow is set (numeric value).

Is it possible? Or generally a bad idea to mess with "system"-tables (What happens if an idiot-admin changes the name/columnname of the target-table etc.)?
Any advice?

Viewing all articles
Browse latest Browse all 2918

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>