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
Nice and simple.
Most of the other posts I found wanted me to give the db user the right to look tables.
Yes very simple and easy way to get it done.
its –single-transaction
That was simple and working! Thanks
Works perfectly.
How ?
Thanks a lot. It solved my problem
Hi, Stefano,
you solution is excellant and resolve my issue
Thanks for such a simple soluction
-Pritesh