Solved

got error 1044 when dumping MySQL 5.0 BD

Posted on 2008-10-10
5
817 Views
Last Modified: 2012-05-05
Hi i'm trying to backup a mySQL database and i'm getting the following message at the bottom of this DOS text. I'm using windows 2003 server and mysql 5.0.
---------------------------------------------------------------------------
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\Administrator>cd\

C:\>cd program files\mysql\mysql server 5.0\bin\

C:\Program Files\MySQL\MySQL Server 5.0\bin>mysqldump -u wikiuser -p wikidb>F:\C
TLWIKIBACKUP\ctlwiki101008.sql
Enter password: ******
mysqldump: Got error: 1044: Access denied for user 'wikiuser'@'localhost' to dat
abase 'wikidb' when using LOCK TABLES

C:\Program Files\MySQL\MySQL Server 5.0\bin>mysqldump -u wikiuser -p wikidb>F:\C
TLWIKIBACKUP\ctlwiki101008.sql
Enter password: ******
mysqldump: Got error: 1044: Access denied for user 'wikiuser'@'localhost' to dat
abase 'wikidb' when using LOCK TABLES

C:\Program Files\MySQL\MySQL Server 5.0\bin>


-----------------------------


Any ideas how I can get around this LOCKED TABLES error so i can backup the database?

Many thanks experts

0
Comment
Question by:mschneikert
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22688355
you need to grant the LOCK TABLE permissions to that login.
0
 

Author Comment

by:mschneikert
ID: 22701498
Thanks for this Angell - any ideas how i do this?
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22701727
http://dev.mysql.com/doc/refman/5.0/en/grant.html

GRANT LOCK TABLES ON <dbname>.<tablename> TO 'wikiuser'@'localhost';

Open in new window

0
 

Author Comment

by:mschneikert
ID: 22702043
ok my dbname is "wikidb" but i do not know the name of the table. Any idea how i find this out?
0
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 125 total points
ID: 22702374
you can use wildcards:
GRANT LOCK TABLES ON wikidb.* TO 'wikiuser'@'localhost';

Open in new window

0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question