mysql_mysqldump_database
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mysql_mysqldump_database [2015/12/14 12:19] – luke7858 | mysql_mysqldump_database [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | === Basic mysql dump === | ||
| === Basic Dump === | === Basic Dump === | ||
| + | __**NOTE: | ||
| + | \\ | ||
| + | If table engines are MyISAM, a write AND read lock will be placed on the tables, which means there will be " | ||
| + | \\ | ||
| + | Change ' | ||
| + | <sxh bash> | ||
| + | select engine, | ||
| + | </ | ||
| + | \\ | ||
| + | \\ | ||
| You can then perform a dump with: | You can then perform a dump with: | ||
| - | |||
| - | |||
| <sxh bash> | <sxh bash> | ||
| + | \\ | ||
| + | **Recommended**: | ||
| + | \\ | ||
| You can also use the following to add date to the mysql dump: | You can also use the following to add date to the mysql dump: | ||
| <sxh bash> | <sxh bash> | ||
| Line 10: | Line 20: | ||
| <sxh bash> | <sxh bash> | ||
| \\ | \\ | ||
| + | Note: It may be benefitial to run the mysql dump in a screen session depending on how large the database is. | ||
| \\ | \\ | ||
| + | To view database size please visit: https:// | ||
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ||
| === Importing === | === Importing === | ||
| Line 17: | Line 29: | ||
| <sxh bash> | <sxh bash> | ||
| + | \\ | ||
| + | Using PV to import - Progress report | ||
| + | <sxh bash> | ||
| + | pv database_file.sql | mysql database_name | ||
| + | </ | ||
| + | ------------------------------------------------------------------------ | ||
| + | \\ | ||
| + | \\ | ||
| === Advanced mysql dump === | === Advanced mysql dump === | ||
| === Database Engine === | === Database Engine === | ||
mysql_mysqldump_database.1450095576.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
