mysqldump: Got error: 1142: SELECT,LOCK TABL command denied to user 'debian-sys-maint'@'localhost' for table 'cond_instances' when using LOCK TABLES
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
automysqlbackup (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Release: 12.04
automysqlbackup:
Installed: 2.6+debian-2
Candidate: 2.6+debian-2
Version table:
*** 2.6+debian-2 0
500 http://
100 /var/lib/
After a remove --purge, reinstall of automysqlbackup, and configure in /etc/defaults/
mysqldump: Got error: 1142: SELECT,LOCK TABL command denied to user 'debian-
it seems that the default on ubuntu is to use the user debian-sys-maint to run this backup, however debian-sys-maint doesn't have full permissions. Some say that these tables are not necessary to backup and recommend the flag " --skip-add-locks" OR "--skip-
I managed to get the error to go away by adding "--skip-
if [ -z "${USERNAME}" -o -z "${PASSWORD}" ] ; then
T --skip-lock-tables $1 > $2
else
=$DBHOST --skip-lock-tables $NEWOPT $1 > $2
fi
return 0
Status changed to 'Confirmed' because the bug affects multiple users.