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.
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...
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