Show the privileges of a MySQL user
check mysql user privileges | access denied for user database | what permissions does database user have | mysql | mariadb | permissions | usersmysql -e "SHOW GRANTS FOR 'dbuser'@'localhost';"Prints the user’s privileges as GRANT statements. Useful with the error message “Access denied” to check whether the user has access to the right database. User and host must exactly match an entry in mysql.user.
Also searched as
- check mysql user privileges
- access denied for user database
- what permissions does database user have