mysqldude
Error codes › 4005

MySQL & MariaDB error 4005 ER_USER_REFERENCED_AS_DEFINER

Same number, two different errors. 4005 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLUser … is referenced as a definer account in ….
MariaDBNo anchors for recursive WITH element '…'
Example from our test runs: User 'olddev'@'%' is referenced as a definer account in a view. (8.0.46)
MySQLMariaDB
SymbolER_USER_REFERENCED_AS_DEFINERER_RECURSIVE_WITHOUT_ANCHORS
SQLSTATEHY000HY000
TypeServer errorServer error
Versionssince 8.0.26 activesince 10.2.44 active