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

discuss the issue of software theft in ghana and how it has affected the economy

1880


What is isset in php?

718


Can we use session in mvc?

737


Explain about switch statement in PHP?

777


What is preg_match?

729


What is url encoding and decoding in php?

779


What is php key?

688


What is apache and php?

682


How to block direct directory access in PHP?

722


What is empty php?

732


What is php rest api?

750


What is the use of final class in php?

685


What are psrs?

802


What is singleton pattern in php?

656


Explain the types of functions for Splitting String?

771