Linux:mysql:dumps

From Marks Wiki
Revision as of 07:59, 6 August 2009 by Mark (Sọ̀rọ̀ | contribs) (New page: Read the manual on mysqldump, especially option --opt. Also, check the section "Database backups", under "Solving common problems with MySQL". You can dump the database into a file us...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Read the manual on mysqldump, especially option --opt. Also, check the section "Database backups", under "Solving common problems with MySQL".

You can dump the database into a file using:

 mysqldump -h hostname -u user --password=password databasename > filename 

you can restore the info to the database again using:

 mysql -h hostname -u user --password=password databasename < filename