How can we take a backup of a mysql table and how can we
restore it. ?

Answer Posted / kishore

mysqldump is an effective tool to backup MySQL database. It
creates a *.sql file with DROP table, CREATE table and
INSERT into sql-statements of the source database. To
restore the database, execute the *.sql file on destination
database.
Ex:
backup: # mysqldump -u root -p[root_password]
[database_name] > dumpfilename.sql

restore:# mysql -u root -p[root_password] [database_name] <
dumpfilename.sql

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does php have a future?

509


How to check if a string contains a character or word in php?

538


What is the value for this auto incremented field user_pri_id?

506


What is the difference between for and foreach in php?

498


Tell me how do I check if a given variable is empty?

534






How to replace a substring in a given string in php?

549


Tell us how can we display the output directly to the browser?

580


How do you measure variables?

518


What is difference between array_merge and array_combine in php?

505


What are magic methods?

546


How is php different from other languages?

477


What is php limit?

518


What is the use of die in php?

518


What are the main error types in php and how do they differ?

830


Is php dying 2018?

544