Provide information about how to (re-)create mysql triggers #4647
Description
New topic request
Description
This comes from a request over here: magento/magento2#23023
It's not documented yet how mysql triggers are created in the database. It would be beneficial that this could be found easily so people who are missing triggers in their database know how to (re-)create them.
Content checklist
Not sure where this could go, I think either in the mysql section, or in the indexing section?
So to create triggers in the database, you have to make sure the indexers are set to "Update by Schedule". If they are already set to this mode and you are still missing triggers, you can first set them to "Update on Save" and then change them back to "Update by Schedule".
This change of indexer modes can be done in the backend using System => Index Management.
Or via the command line: bin/magento indexer:set-mode <mode> [<indexer1> <indexer2> ...]
where mode
is either realtime
or schedule
.