• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MySQL : Access denied for mysqldump

 
Manish Hatwalne
Ranch Hand
Posts: 2591
Android Firefox Browser Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I try to execute mysqldump on my server, I get following error -

mysqldump: Got error: 1044: Access denied for user 'abc'@'localhost' to database 'xyz' when using LOCK TABLES

I have already doen fllowing to grant all to the user "abc" -

mysql> grant all on *.* to 'abc'@'localhost' identified by 'xxxx';
Query OK, 0 rows affected (0.26 sec)

What is causing this problem and how can I fix it?

- Manish
 
Martin Simons
Ranch Hand
Posts: 196
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First I have to ask, are you providing the password on the command line, since according to your grant statement the user has one.

But more to the point, you should be asking this at the forums on www.mysql.org
 
Manish Hatwalne
Ranch Hand
Posts: 2591
Android Firefox Browser Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, i was providing password on command line. Never mind - I just got this working today by excecuting "flush privileges" after grant command.

- Manish
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic