mariadbHow to backup all databases in Mariadb?
Backing up all databases in MariaDB can be done using the mysqldump
command. This command will create a backup of all databases in the form of a SQL script.
Example
mysqldump --all-databases > all_databases.sql
This command will create a file called all_databases.sql
which contains the SQL script for all databases.
Code explanation
mysqldump
: The command used to create a backup of all databases.--all-databases
: An option to specify that all databases should be backed up.> all_databases.sql
: The output of the command will be written to the fileall_databases.sql
.
Helpful links
More of Mariadb
- How to get current year in Mariadb?
- What type to use for a year in Mariadb?
- How to work with XML in Mariadb?
- How to use the WITH clause in Mariadb?
- How to check version of Mariadb?
- How to list users in Mariadb?
- How to change wait_timeout in Mariadb?
- How to use variables in Mariadb?
- Mariadb partitioning example
- How to use XA transactions in Mariadb?
See more codes...