xi 2012R1 VM image, problem with MySQL backup

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
jrmartin
Posts: 46
Joined: Mon Aug 08, 2011 6:55 pm

xi 2012R1 VM image, problem with MySQL backup

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jrmartin
Posts: 46
Joined: Mon Aug 08, 2011 6:55 pm

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

Post by jrmartin »

here you go.

# mysql --version
mysql Ver 14.14 Distrib 5.1.52, for pc-linux-gnu (i686) using readline 5.1
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

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

Post 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"
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jrmartin
Posts: 46
Joined: Mon Aug 08, 2011 6:55 pm

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

Post by jrmartin »

ok I made the change and will check it tomorrow, thanks.
jrmartin
Posts: 46
Joined: Mon Aug 08, 2011 6:55 pm

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

Post by jrmartin »

ok Looks like that was successful. Backup completed normally.