MySQL & MariaDB error 4100 ER_IF_NOT_EXISTS_UNSUPPORTED_TRG_EXISTS_ON_DIFFERENT_TABLE
Same number, two different errors. 4100 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLTrigger '…'.'…' already exists on a different table. The 'IF NOT EXISTS' clause is only supported for triggers associated with the same table.
MariaDBField reference '…' can't be used in table value constructor