MySQL & MariaDB error 4046 ER_DA_ERROR_LOG_COMPONENT_FLUSH_FAILED
Same number, two different errors. 4046 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQL… error logging component(s) failed to flush. For file-based logs this can happen when the path or permissions of the log-file have changed. Failure to flush filed-based logs may affect log-rotation.
MariaDBArgument 2 to function '…' must be "one" or "all".