A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
Write for DigitalOcean
You get paid, we donate to tech non-profits.
Find and meet other developers in your city.
Contribute to Open Source
How do I get a backup of the database for an instance of Moodle installed on Digital Ocean Droplet?
Thanks Sianios. I had someone else set this up and do not have the database name or password. If you have ideas of how I can retrieve them, I would appreciate hearing about them.
Add comments here to get more clarity or context around a question. To answer a question, use the “Answer” field below.
Execute the following command from terminal, replace username and database. with yours
```mysqldump -u username -p moodledb > moodledb.sql