Page 1 of 1

XI 2012R1 VM image, problem with MySQL backup

Posted: Thu Oct 25, 2012 9:06 am
by jrmartin
Hello,
I am getting the following error on my nightly backup job.

###### WARNING ######
Errors reported during AutoMySQLBackup execution.. Backup failed
Error log below..
mysqldump: Got error: 1044: Access denied for user 'root'@'localhost' to database 'information_schema' when using LOCK TABLES

Is this to be expected or do I need to take some action on this? Thanks,
Jeff

Re: XI 2012R1 VM image, problem with MySQL backup

Posted: Thu Oct 25, 2012 11:26 am
by scottwilkerson
I believe this may be a bug in MySQL found in this thread
http://support.nagios.com/forum/viewtop ... 626#p32702
lmiltchev wrote:This has been reported as a bug:

http://bugs.mysql.com/bug.php?id=21527

Can you run the following command and show the output?

Code: Select all

mysql --version

Re: XI 2012R1 VM image, problem with MySQL backup

Posted: Thu Oct 25, 2012 11:39 am
by jrmartin
here you go.

# mysql --version
mysql Ver 14.14 Distrib 5.1.52, for pc-linux-gnu (i686) using readline 5.1

Re: XI 2012R1 VM image, problem with MySQL backup

Posted: Thu Oct 25, 2012 12:31 pm
by scottwilkerson
In reading up on this and talking it through with other developers here, this script shouldn't backup information_schema

You can correct this by doing the following:

change line 66 of /root/scripts/automysqlbackup
from

Code: Select all

DBEXCLUDE=""
to

Code: Select all

DBEXCLUDE="information_schema"

Re: XI 2012R1 VM image, problem with MySQL backup

Posted: Thu Oct 25, 2012 2:03 pm
by jrmartin
ok I made the change and will check it tomorrow, thanks.

Re: XI 2012R1 VM image, problem with MySQL backup

Posted: Fri Oct 26, 2012 9:03 am
by jrmartin
ok Looks like that was successful. Backup completed normally.