If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Unable to generate snapshot using mysqldump - Got error: 1045

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-06-08, 00:18
Shaitan00 Shaitan00 is offline
Registered User
 
Join Date: Jan 2006
Posts: 13
Question Unable to generate snapshot using mysqldump - Got error: 1045

I am trying to create a snapshot (backup) of my MySQL database (INNODB) using the mysqldump tool as follows:
mysqldump -p bank > bank.sql;
Where bank is the name of the database I wish to backup.

When I run the command I get prompted for a password "pass" which then generates the following error:
mysqldump: Got error: 1045: Access denied for user 'ODBC'@'localhost' (using password: YES) when trying to connect

To logon to the database I typically use the MySQL Command Line Client (Windows Start-> Program -> MySql -> MYSQL Server 5.1 -> MySQL Command Line). When I select this it prompts me for the password ("pass") which I enter and then can load my database and perform whatever operations are needed.

So my question is - why does the same password not working for mysqldump? I don't recall ever setting a different one nor do I recall doing anything with a username...
This is all done locally (on my pc) under an account with admin rights...

Anyone have an idea?
Any help would be greatly appreciated...

Thanks,
Reply With Quote
  #2 (permalink)  
Old 08-06-08, 02:50
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
what permissions does the user account you are using have?
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 08-06-08, 10:19
Shaitan00 Shaitan00 is offline
Registered User
 
Join Date: Jan 2006
Posts: 13
Administrator...
My own personal user account on my PC
Reply With Quote
  #4 (permalink)  
Old 08-06-08, 11:03
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
no such thing as "adminstrator" permissions, accounts maybe, permissions no
unless you are using the root account I'd guess its a permissions problem, either you don't have permission to lock the DB or something similar
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On