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:
ORG-wiki 2023-01-01 02:01:23 +01:00
parent 1e291a8001
commit e749f2924c
1 changed files with 1 additions and 2 deletions

View File

@ -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)