0

I am using MySQL in command line . I need to create backup of my database as I am afraid that if any virus attacks my laptop then I need to format it and my database will be lost . Please tell me how to create backup of my database . .

  • possible duplicate of [Clone MySQL database](http://stackoverflow.com/questions/5551301/clone-mysql-database) – ryekayo Jun 23 '15 at 17:47

1 Answers1

0

I think you meant to use mysqldump utility from command line like

mysqldump -u test -ptest <DB_NAME> > Backfile.mysql
Rahul
  • 76,197
  • 13
  • 71
  • 125