Comments - Unable to create after insert trigger on mariadb
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
I tried the second version. I added a space before 'FOR EACH ROW' (maybe just a formatting problem, I don't know). It works.
Try a SHOW PROCESSLIST and look at the Status column - maybe the process is "Waiting for Metadata locks"?
You are right its waiting for meta data lock. How can this be resolved ?
Ideally, the process that's holding the lock should COMMIT the current transaction. If you can't achieve this, just kill the process:
KILL 8