A MySQL or MariaDB application user often has more rights than anyone remembers. I check it in one statement.
SHOW GRANTS FOR 'app'@'localhost';
SELECT user, host FROM mysql.user ORDER BY user;
The first line lists every privilege of that account. Anything beyond the database the app needs, such as ALL PRIVILEGES ON *.* or GRANT OPTION, is worth removing with REVOKE.
An account is a user and host pair. 'app'@'%' and 'app'@'localhost' are two separate accounts with separate grants, so look at the second query to see which ones exist. SHOW GRANTS on its own shows your own account.
Further reading: MySQL Reference Manual: SHOW GRANTS