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:23] – luke7858 | mysql_mysqldump_database [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=== 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**: | **Recommended**: | ||
\\ | \\ | ||
Line 11: | 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 18: | Line 30: | ||
\\ | \\ | ||
+ | Using PV to import - Progress report | ||
+ | <sxh bash> | ||
+ | pv database_file.sql | mysql database_name | ||
+ | </ | ||
------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ||
\\ | \\ |
mysql_mysqldump_database.1450095802.txt.gz · Last modified: 2024/05/23 07:26 (external edit)