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.
Example from our test runs:
User 'olddev'@'%' is referenced as a definer account in a view. (8.0.46)