Error 1044 in MySQL: Access denied when using LOCK TABLES

I got an error while using mysqldump

mysqldump: Got error: 1044: Access denied for user x@y to database z when using LOCK TABLES

To solve this problem, either ask you administrator to grant you the lock privileges, or use the following command instead.

mysqldump -u username -p database --single-transaction >dump.sql

6 Comments

  1. Hemant Gandhi
    Posted December 7, 2008 at 3:47 pm | Permalink

    Nice and simple.
    Most of the other posts I found wanted me to give the db user the right to look tables.

  2. Asif
    Posted February 16, 2009 at 5:34 pm | Permalink

    Yes very simple and easy way to get it done.

    its –single-transaction

  3. Ganga
    Posted February 4, 2010 at 5:51 pm | Permalink

    That was simple and working! Thanks

  4. Alex
    Posted May 12, 2010 at 9:40 am | Permalink

    Works perfectly.

    How ?

  5. sageperilous
    Posted June 25, 2010 at 8:27 am | Permalink

    Thanks a lot. It solved my problem

  6. Pritesh
    Posted July 13, 2010 at 4:14 pm | Permalink

    Hi, Stefano,

    you solution is excellant and resolve my issue

    Thanks for such a simple soluction

    -Pritesh

Post a Comment

Your email is never shared. Required fields are marked *

*
*
InspectorWordpress has prevented 1 attacks.