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

Write a program using while loop?

559


What is __ construct in php?

543


What are the disadvantages of php?

518


What is PHP? Who is the father or inventor of PHP?

617


How the values are ordered in an array?

578






Tell me what is htaccess?

493


What is the use of trim function in php?

527


What is php how it works?

542


Do you know what does mvc stand for and what does each component do?

509


What is use of count() function in php?

575


What is use of in_array() function in php?

543


What is php limit?

522


How to create a session? How to remove data from a session?

526


What does the unlink() function means?

550


Why is php so popular?

521