What is the command to dump the database structure, data and zip it?
Also what is the command to execute the sql file to the db?
| SitePoint Sponsor |
What is the command to dump the database structure, data and zip it?
Also what is the command to execute the sql file to the db?
Free Science Homework Help
http://www.physicsforums.com





For backing up:
For restoring:Code:mysqldump -u username -p db_name | gzip > backup.sql.gz
Code:mysql -u username -p db_name < backup.sql
Community Guidelines | Community FAQ
"He that is kind is free, though he is a slave;
he that is evil is a slave, though he be a king." - St. Augustine
how do you restore from the zip? also is this the best way to transfer large databases? say like a gig?Originally Posted by Toly
Free Science Homework Help
http://www.physicsforums.com





You can use winzip to extract the file. And for the second question, as far as I know, that is the best method.Originally Posted by dethfire
Community Guidelines | Community FAQ
"He that is kind is free, though he is a slave;
he that is evil is a slave, though he be a king." - St. Augustine
Bookmarks