MySQL & MariaDB error 4156 ER_CANT_CHANGE_SYS_VAR_IN_READ_ONLY_MODE
Same number, two different errors. 4156 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLCannot change the '…' system variable in read-only mode.
MariaDBPeriod … is not found in table