I ran the following command to create a mysqldump
mysqldump -ubackup -psomething --single-transaction --quick somedatabase | gzip > 4_19.gz
I got following error after 60% (estimating checking size of the zip file) of the dump created:
mysqldump: Couldn't execute 'show table status like 'customer\_cohort\_paid'': SELECT command denied to user ''@'%' for column 'customer_id' in table 'sales_order' (1143)
It says of about permission issues for a blank user user ''@'%'. Moreover, grants for backup user is as followed:
mysql> show grants for 'backup'@'%';
+------------------------------------------------------------------------------------------------------------------------------------------------+
| Grants for backup@% |
+------------------------------------------------------------------------------------------------------------------------------------------------+
| GRANT SELECT, LOCK TABLES, SHOW VIEW, EVENT, TRIGGER ON *.* TO 'backup'@'%' IDENTIFIED BY PASSWORD '*SOMETHING' |
+------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
What am I doing wrong?
GRANT CREATE VIEW ON *.* TO 'backup'@'%';didn't work ;) – dragosrsupercool Dec 05 '14 at 09:30-f? – dragosrsupercool Dec 05 '14 at 09:31-f– RolandoMySQLDBA Dec 05 '14 at 16:52-fwith extreme caution, because it masks errors, by definition, leaving you with an incomplete backup. Last I checked, it incorrectly leaves the exit status of the dump process set to 0, even if errors occurred. – Michael - sqlbot Dec 08 '14 at 01:38