views:

53

answers:

1

I am using mysqldump to take backup of my database, but the command is not working.. the command i am using is mysqldump -u root dbname> 'c:\backupdatafolder\backup.sql' i am running this command in MySQL cli but not running,..is there any thing wrong in the command?

+1  A: 

You are supposed to run that on the command line of your operating system not on the MySQL CLI.

Bakkal
hey! @Bakkal but then also not working, giving the error "mysqldump is not recognized ..."
Harish Kurup
`cd` to the bin folder of MySQL first, something like `C:\mysql\bin` I think.
Bakkal
hey thanks @Bakkal, just forgot to set the class path...it worked, previously i was just running the command in MySQL CLI...Thanks a lot..
Harish Kurup
You're welcome :)
Bakkal