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

Can you specify the "new line" character in single-quoted strings?

747


Tell me which programming language does php resemble to?

712


What is fetch array in php?

828


Where session is stored?

742


Tell me how to strip whitespace (or other characters) from the beginning and end of a string?

734


What is overriding in php?

844


What are the different types of statements that are present in php?

778


What are the different opening and closing tags available in PHP?

783


Tell me how is it possible to parse a configuration file?

720


Which of the data type is compound datatype supported by PHP?

783


What is mvc in php?

763


Is false empty php?

741


What is the use of Mbstring?

736


What PHP stands for?

777


Explain what does the expression exception::__tostring means?

686