MySQL & MariaDB error 4002 ER_DA_ERROR_LOG_TABLE_DISABLED
Same number, two different errors. 4002 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLNone of the log-sinks selected in @@global.log_error_services supports writing to the performance schema. The server will not be able to make the current runs' error events available in performance_schema.error_log. To change this, add a log-sink that supports the performance schema to @@global.log_error_services.
MariaDBWITH column list and SELECT field list have different column counts