mysqldude
Error codes › 4004

MySQL & MariaDB error 4004 ER_DA_CANT_OPEN_ERROR_LOG

Same number, two different errors. 4004 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLCould not open file '…' for error logging……
MariaDBDuplicate query name … in WITH clause
MySQLMariaDB
SymbolER_DA_CANT_OPEN_ERROR_LOGER_DUP_QUERY_NAME
SQLSTATEHY000HY000
TypeServer errorServer error
Versionssince 8.0.26 activesince 10.2.44 active
How the message changed between versions
MariaDB fromSymbolMessage
10.2.44ER_DUP_QUERY_NAMEDuplicate query name in WITH clause '%s'
10.3.39ER_DUP_QUERY_NAMEDuplicate query name %`-.64s in WITH clause