mysqldump: Got error: 1142: SELECT,LOCK TABL command denied to user – for table ‘cond_instances’

Rob —  July 24, 2014 — 1 Comment

Have you seen this error before? This is because you’re trying to dump the performance_schema database while locking tables.

The full error you received probably looks something like:

mysqldump: Got error: 1142: SELECT,LOCK TABL command denied to user ‘root’@’localhost’ for table ‘cond_instances’ when using LOCK TABLES

This probably means you’re trying to backup all of your databases at once.. you don’t need to back up the performance_schema database (and information_schema) anyway – so just exclude it and you won’t see this error anymore!

(Though, there’s a better way to backup all of your mysql databases…)

Related posts from Linux Brigade!

  • Import MySQL database from command lineImport MySQL database from command line You’ll need to import a database via command line from time to time – I’ll normally opt for this anyway. After seeing how easy it is, you’ll probably end up using the command line instead […]
  • Rescued my little Acer C7 ChromebookRescued my little Acer C7 Chromebook After installing chrubuntu on my c7, I decided to put it back to factory and give crouton a try so that I could run both chrome and crouton at the same time.  I created the restore usb […]
  • CentOS 7 / RHEL 7 systemd commandsCentOS 7 / RHEL 7 systemd commands By now, if you’ve played around with CentOS 7 (or RHEL 7), you’ve heard that there are now systemd commands you can start using to start, restart and stop various services. They still […]
  • Learn the CSF command line options You have CSF installed and use the GUI to do most things.  (If you don’t have it installed yet, you can read our article on how to install csf).  BUT – knowing the csf (ConfigServer […]
  • Easily increase storage size with LVMEasily increase storage size with LVM Your server needs more space eh? Throw another physical drive in there and let’s use that to increase the logical volume that needs more space! In this example, we are going to use a […]

Trackbacks and Pingbacks:

  1. AutoMySQLBackup mysqldump error 1142 | Romand Rails - March 3, 2015

    […] to this site this is because is trying to back up also the “information_schema” and the […]

Leave a Reply

Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url=""> 

*