Created
July 12, 2025 17:00
-
-
Save casperghst42/8a50dfe4234e9859384b174a77a48737 to your computer and use it in GitHub Desktop.
maria-dump and mysqldump - execute command denied to user 'testuser'@'%' for routine 'sys.format_statement' (1370)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mariadb-dump: Couldn't execute 'SHOW FIELDS FROM `innodb_lock_waits`': execute command denied to user 'testuser'@'localhost' for routine 'sys.format_statement' (1370) | |
Solution from: https://forums.mysql.com/read.php?10,668311,668315#msg-668315 | |
+-------------------------------------------------------------------------------------------+ | |
| Grants for testuser@localhost | | |
+-------------------------------------------------------------------------------------------+ | |
| GRANT SELECT ON *.* TO 'testuser'@'localhost' | | |
| GRANT LOCK TABLES, SHOW VIEW ON `sys`.* TO 'testuser'@'localhost' | | |
| GRANT EXECUTE ON FUNCTION `sys`.`extract_table_from_file_name` TO 'testuser'@'localhost' | | |
| GRANT EXECUTE ON FUNCTION `sys`.`format_path` TO 'testuser'@'localhost' | | |
| GRANT EXECUTE ON FUNCTION `sys`.`format_statement` TO 'testuser'@'localhost' | | |
| GRANT EXECUTE ON FUNCTION `sys`.`extract_schema_from_file_name` TO 'testuser'@'localhost' | | |
| GRANT EXECUTE ON FUNCTION `sys`.`ps_thread_account` TO 'testuser'@'localhost' | | |
| GRANT EXECUTE ON FUNCTION `sys`.`format_time` TO 'testuser'@'localhost' | | |
| GRANT EXECUTE ON FUNCTION `sys`.`format_bytes` TO 'testuser'@'localhost' | | |
+-------------------------------------------------------------------------------------------+ | |
9 rows in set (0.00 sec) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment