summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2019-05-02 14:25:24 +0100
committerVladislav Vaintroub <wlad@mariadb.com>2019-05-02 14:25:24 +0100
commit4b0f010b884cb298a33ed438c2b3688c472dbbf7 (patch)
tree9302ccda09156da1df39833ddcff2d9333ad8b28 /extra
parentada1074bb10359342ee00e220fe9c172574265fb (diff)
downloadmariadb-git-4b0f010b884cb298a33ed438c2b3688c472dbbf7.tar.gz
MDEV-18544 "missing required privilege PROCESS on *.*" using mariabackup for SST
If required privilege is missing, dump the output from "SHOW GRANTS" into mariabackup log. This will help troubleshooting, and make the bug reproducible.
Diffstat (limited to 'extra')
-rw-r--r--extra/mariabackup/xtrabackup.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/extra/mariabackup/xtrabackup.cc b/extra/mariabackup/xtrabackup.cc
index eae55ddb02e..538d00f0fdb 100644
--- a/extra/mariabackup/xtrabackup.cc
+++ b/extra/mariabackup/xtrabackup.cc
@@ -5820,6 +5820,13 @@ check_all_privileges()
if (check_result & PRIVILEGE_ERROR) {
mysql_close(mysql_connection);
+ msg("Current privileges, as reported by 'SHOW GRANTS': ");
+ int n=1;
+ for (std::list<std::string>::const_iterator it = granted_privileges.begin();
+ it != granted_privileges.end();
+ it++,n++) {
+ msg(" %d.%s", n, it->c_str());
+ }
die("Insufficient privileges");
}
}