Bug #61414 | upgraded from 5.1->5.5. now getting a mysqldump ERROR "1142:SELECT,LOCK TABL com | ||
---|---|---|---|
Submitted: | 5 Jun 2011 22:22 | Modified: | 6 Jun 2011 5:23 |
Reporter: | ag d | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Backup | Severity: | S2 (Serious) |
Version: | 5.5.12 | OS: | Linux (x86_64, opensuse 11.4, pkg) |
Assigned to: | CPU Architecture: | Any |
[5 Jun 2011 22:22]
ag d
[6 Jun 2011 4:26]
Valeriy Kravchuk
Is there any way with ZRP to skip dumping of the performance_schema database? Please, send also the output of: /usr/bin/mysqldump --version
[6 Jun 2011 4:50]
ag d
hi, > Is there any way with ZRP to skip dumping of the performance_schema database? yes, there is. adding to /etc/mysql-zrm/manual/mysql-zrm.conf ... all-databases=1 + exclude-pattern="performance_schema" ... then, mysql-zrm-scheduler --now --backup-set manual --backup-level 0 returns, ... /usr/bin/mysql-zrm started successfully with no apparent ERRORs. so, seems by excluding it, takes care of the error. of course, it's not then backed up. i'm not at all certain what that means for the state of the backup, or my ability to successfully restore to a fully-working state. i suspect since it's there, it *should* be backed up, right? likely figuring out how to back it up correctly is probably the right solution ... to that end, > Please, send also the output of: > /usr/bin/mysqldump --version /usr/bin/mysqldump --version mysqldump Ver 10.13 Distrib 5.5.12, for Linux (i686)
[6 Jun 2011 5:05]
Valeriy Kravchuk
http://dev.mysql.com/doc/refman/5.5/en/performance-schema-restrictions.html explains why you get error message with LOCK TABLES. http://dev.mysql.com/doc/refman/5.5/en/performance-schema.html explains what exact data this database contains: "Tables in the performance_schema database are views or temporary tables that use no persistent on-disk storage" Personally I see no big need to dump these data. The fact that ZRM tries to backup it by default with --opt option of mysqldump is a bug in ZRP, and this will never work: macbook-pro:5.5 openxs$ bin/mysqldump -uroot performance_schema -- MySQL dump 10.13 Distrib 5.5.14, for osx10.5 (i386) -- -- Host: localhost Database: performance_schema -- ------------------------------------------------------ -- Server version 5.5.14-debug /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; mysqldump: Got error: 1142: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'cond_instances' when using LOCK TABLES One should use --skip-lock-tables option with mysqldump to dump performance_schema. Please, check and report ZRM bug for their current behavior.
[6 Jun 2011 5:20]
ag d
thanks for the references. and, for the call that it's a ZRM issue. i'll get this info into a queue over there. cheers.
[6 Jun 2011 5:23]
Valeriy Kravchuk
I do not see any obvious MySQL bug in this case.