Couldn't execute 'FLUSH TABLES': Access denied since 5.7.41/8.0.32
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Server |
Unknown
|
Unknown
|
|||
mysql-5.7 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
mysql-8.0 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
As of today, our dump script stopped working. During the night, unattended-upgrades upgraded from 5.7.40 to 5.7.41.
Same happened on 20.04, upgraded from 8.0.31 to 8.0.32.
The changelog doesn't mention any change in permissions handling.
https:/
Relevant discussion:
https:/
The error reported is:
mysqldump: Couldn't execute 'FLUSH TABLES': Access denied; you need (at least one of) the RELOAD privilege(s) for this operation (1227)
The command used for dump:
mysqldump --defaults-
User created with:
grant select, lock tables, show view on *.* to 'backup-
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: mysql-server-5.7 5.7.41-
ProcVersionSign
Uname: Linux 4.15.0-200-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.28
Architecture: amd64
Date: Wed Jan 25 13:25:03 2023
InstallationDate: Installed on 2020-04-20 (1009 days ago)
InstallationMedia: Ubuntu-Server 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203.1)
Logs.var.
MySQLConf.
MySQLConf.
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
MySQLConf.
MySQLConf.
[mysqld_safe]
syslog
MySQLVarLibDirL
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: mysql-5.7
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
mtime.conffile.
summary: |
- Couldn't execute 'FLUSH TABLES': Access denied since 5.7.41 + Couldn't execute 'FLUSH TABLES': Access denied since 5.7.41/8.0.32 |
Changed in mysql-8.0 (Ubuntu): | |
status: | New → Confirmed |
tags: | added: regression-update |
Granting RELOAD to the backup user restored previous dump behaviour