Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How to stop automysqlbackup's cron.daily script -- as installed and configured from apt-get install automysqlbackup -- throwing the following error:

 mysqldump: Got error: 1142: SELECT,LOCK TABL command denied to user 
'debian-sys-maint'@'localhost' for table 'cond_instances' when using LOCK TABLES

This first occurred (for me) after having upgraded to MySQL 5.5 as a consequence of having upgraded to Ubuntu 12.04 LTS.

share|improve this question

1 Answer

up vote 6 down vote accepted

According to this bug report it is necessary to stop automysqlbackup dumping the 'performance_schema' database, and this is done by editing /etc/default/automysqlbackup as follows:

Add an additional pipe to grep step to remove the 'performance_schema' from the list of DBNAMES.

So, in the line that starts DBNAMES=, and after | grep -v ^mysql$ insert

| grep -v ^performance_schema$ 

before | tr \\\r\\\n ,\

Thanks to Jérôme Drouet

share|improve this answer
Your answer works. Go ahead and select your answer as the correct one. – Stefan Lasiewski Oct 1 '12 at 22:49

protected by RolandiXor Aug 3 '12 at 6:34

This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.

Not the answer you're looking for? Browse other questions tagged or ask your own question.