Question

Moodle Database Backup download

  • Posted January 15, 2015

How do I get a backup of the database for an instance of Moodle installed on Digital Ocean Droplet?

Subscribe
Share

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.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

You can check our existing tutorial on how to back up a MySQL database:

https://www.digitalocean.com/community/tutorials/how-to-backup-mysql-databases-on-an-ubuntu-vps

To Export a database, open up the terminal, making sure that you are not logged into MySQL and type,

mysqldump -u [username] -p [database name] > [database name].sql

Regards, Alex

Execute the following command from terminal, replace username and database. with yours