Wiki page mariadb changed with summary [[Backup database] changed dump all database comand and added single dump database command] by Daniel
This commit is contained in:
parent
1e291a8001
commit
e749f2924c
|
@ -100,8 +100,7 @@ EXIT;
|
|||
|
||||
===== Backup database =====
|
||||
|
||||
You can dump all databases with the following command ''mysqldump %%--%%single-transaction %%--%%flush-logs %%--%%master-data=2 %%--%%all-databases -u root -p | gzip > all_databases.sql.gz
|
||||
''.
|
||||
You can dump all databases with the following command ''mysqldump -u root -p %%--%%all-databases | gzip > all_databases.sql.gz'' or just one single database ''mysqldump -u root -p --databases database_name | gzip > database_name.sql.gz''.
|
||||
|
||||
Or use the following script, which contains:
|
||||
* separate databases (when you extract the file)
|
||||
|
|
Loading…
Reference in New Issue