Backup and Restore MariaDB #140
mcguirepr89
started this conversation in
Show and tell
Replies: 1 comment 3 replies
-
Today I did a new installation and planned to restore the old database from a backup. The instructions above seems very simple and straightforward, but I failed. I tried both with Adminer tool and manual commands. I believe it's very important this instruction works. Better safe than sorry. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! This is a discussion dedicated to backing up and restoring the MariaDB. The steps I outline here are the recommended backup and restoration methods.
Using the "Database Maintenance" Tool (Adminer)
You can very easily create a backup of your database using the "System" > "Tools" > "Database Maintenance" tool.
Create the backup
gzip
" as the Output, "SQL
" as the Format, and select "DROP+CREATE
" for both the Database and the Tables leave everything else as is.Restore the backup
That's it! You restored the database!
Using
mysqldump
andmysql
You can also create and restore backups in the command line, though it is not quite as easy as the method above.
Create the backup
detections
table of thebirds
database and placed that file in thescripts
directory.scripts
directory and download a copy of thedetections.sql
file.Restore the backup
detections.sql
backup file to thescripts
directory.pi
owns and can use the backup.That's it! You restored the database!
Beta Was this translation helpful? Give feedback.
All reactions