Skip to content

[SOLVED] Error Backup failed Misuse of shell builtins : mysqldump: Couldn't execute 'FLUSH TABLES': Access denied; you need (at least one of) the RELOAD privilege(s) for this operation (1227) . #12566

Answered by MoralCode
MoralCode asked this question in Q&A
Discussion options

You must be logged in to vote

should have googled the error first. The permission needs to be granted globally via a command like GRANT ALL PRIVILEGES ON *.* TO 'snipe'@'%';. I found this answer via https://stackoverflow.com/questions/9972651/flush-tables-access-denied

Edit: i also saw someone on discord solve this with the command GRANT RELOAD ON * .* TO 'your_user'@'localhost'; in case GRANT ALL PRIVILEGES is scary for folks who use the same DB server for many things

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by MoralCode
Comment options

You must be logged in to vote
6 replies
@karthik8223
Comment options

@MoralCode
Comment options

@karthik8223
Comment options

@karthik8223
Comment options

@MoralCode
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants