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

Answer Posted / ajay giri

We can use below query for exporting data to a .txt file.

mysql> SELECT * FROM <table_name> INTO
OUTFILE '<file_name>' FIELDS TERMINATED BY ',';

We can use below query for importing data from .txt file

mysql> LOAD DATA INFILE <file_name> INTO
TABLE '<table_name>'
FIELDS TERMINATED BY ',';

Is This Answer Correct ?    20 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of indexes in php?

569


What is php simple definition?

540


How to update memcached when you make changes to php?

544


What is action hooks and filter hooks?

498


What is a definer in mysql?

559






How many types of arrays are there in php?

538


What are php loops?

535


What is laracast?

586


Which function will you use to create an array?

520


How to write the form tag correctly for uploading files?

565


How do you define a constant in php?

559


Write a program using while loop in php?

574


Explain setcookie() function in php?

566


sort term descripttion form, report and uery

1657


Is strcmp case sensitive?

521