How to backup and restore mysql database? #6726
Replies: 3 comments 5 replies
-
The easiest thing to do is take a sqldump of the DB on 2.9.0 and then restore using that dump. A quick search will find loads of articles on how to do that for MySQL like this one. When you startup 2.13.1 make sure you run the migrations. If you're using docker-compose, this will 'just happen' with the initializer container. You may want to use |
Beta Was this translation helpful? Give feedback.
-
Docker-compose on both machines. ./dc-up-d mysql-rabbitmq .
ср, 17 серп. 2022, 19:18 користувач Matt Tesauro ***@***.***>
пише:
… Need to know what type of install you have before any more details can be
provided.
gododoj (iron) or docker-compose/k8s (container-based) have different ways
to run the database migrations (and ensure they ran without errors)
—
Reply to this email directly, view it on GitHub
<#6726 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIGZWYZPMAXAVFWWPWW4KODVZUGGNANCNFSM56YL2X4A>
.
You are receiving this because you authored the thread.Message ID:
<DefectDojo/django-DefectDojo/repo-discussions/6726/comments/3416228@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
So, for docker-compose, you'll need to do start the compose and do:
to watch the initializer container's output - it will run the migrations and show any errors that occur. If the logs don't show any errors, then I'd check that the migrations all worked (more info here) You can see what migrations ran with:
The output should looks something like:
Basically every line for a migration should have a '[X]' at the beginning. If an 'X" is missing, that migration failed/didn't run. |
Beta Was this translation helpful? Give feedback.
-
I need to backup MySQL database from defectdojo version 2.9.0 and restore it to another machine with defectdojo version 2.13.1.
How to backup mysql database, if there some manual about this ? Where can I find info.
Beta Was this translation helpful? Give feedback.
All reactions