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 / 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

What is singleton design pattern in php?

1040


Is php pass by reference or value?

1149


What is the difference between php and java?

1037


Explain about objects in PHP?

1049


What is a collection in php?

994


How to write php function in html onclick?

995


How can you pass a variable by reference?

1054


Tell me how can we display information of a variable and readable by human with php?

1094


What are global variables in php?

1000


What is cookie?

1080


What is prepared statement in php?

1110


Why session timeout is important?

1178


Tell me what the difference between the 'bitwise and' operator and the 'logical and' operator?

1011


Is nan in javascript?

1028


How to remove leading and trailing spaces from user input values?

1021