Create a more restricted user for MediaWiki maintenance.
Privileges are limited to the affected tables.
Populate a support SQL script with the interwiki list.
The use of REPLACE allows to avoid to read tables first;
the script is safe to run each time it's modified.
Install MariaDB client on saas-mediawiki role,
so that script can be run from there.
References: