MySQL & MariaDB error 4006 ER_CANNOT_USER_REFERENCED_AS_DEFINER
Same number, two different errors. 4006 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLOperation … failed for … as it is referenced as a definer account in ….
MariaDBUnacceptable mutual recursion with anchored table '…'