I need to get a DBDUMP, i am using MySQL.
I get the following error when i try to get a DB Dump. Any clue what it did wrong.
C:\Program Files\MySQL\MySQL Server 5.1\bin>mysqldump -u root -p xxx myDB
e > dump.sql
Enter password: ***
mysqldump: Got error: 1049: Unknown database 'xxx' when selecting the database
That command is saying you want to enter the password at the prompt and dump the
myDBtable from thexxxdatabase. If you get rid of the “xxx” part and enter the password at the prompt, it should work.If you actually want to specify the password on the command line, you have to do
-pWHATEVER(where “WHATEVER” is the literal password, with no space after the switch), or--password=WHATEVER, but:Documentation link