Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Explain do you use composer? If yes, what benefits have you found in it?

974


What is singleton design pattern in php?

1000


What is difference between md5 and SHA256?

1105


What does $globals mean?

956


How many types of session are there?

1037


Are php sessions cookies?

965


What is the difference between == and === operator in PHP?

992


What is ci in php?

1058


What is mod_php?

1021


Which is true about the singleton design pattern?

943


What is the difference between htmlentities and htmlspecialchars in php?

1029


What is the use of preg_match in php?

998


How can we get ip address of a client in php?

969


How is it possible to propagate a session id?

1002


Which array function checks if the particular key exists in the array?

906