I booted from Recovery ISO, opened recovery console and ran command
mysqldump -u username -p database_name > data-dump.sql
Output
bash: mysqldump: command not found
I tried to find out but mysql was not installed, then I proceeded to install it.
sudo apt update
sudo apt install mysql-server
But the results returned
No space left on device
so i can’t install mysql on recovery environment, so i can’t create database backup via mysqldump command. What should I do, when droplet is down
This textbox defaults to using Markdown to format your 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.
Heya, @3a956ebeda09409f879334ecda13c0
What you can try is to copy the /var/lib/mysql data to your local machine instead of trying to install ‘mysql’ during recovery.
You should see something like:
vda1
, mount it:You should see folders corresponding to your databases.
Now, you need to download the database backup before reinstalling the Droplet.
Once you have backed up your MySQL data, rebuild your Droplet and restore the database.
Hope that this helps!