I have installed mysql to an ubuntu (Digital Ocean) server. There are no any extra security layers. Just basic installations.
Recently it was hacked and deleted with only one table which has the following message:
To recover your lost Database and avoid leaking it: Send us 0.1 Bitcoin (BTC) to our Bitcoin address 17rDr5mbXjLdegWDFuWd61Ymhwm54GjtNK and contact us by Email with your Server IP or Domain name and a Proof of Payment. If you are unsure if we have your data, contact us and we will send you a proof. Your Database is downloaded and backed up on our servers. Backups that we have right now: drm, eatoeat . If we dont receive your payment in the next 10 Days, we will make your database public or use them otherwise. | 17rDr5mbXjLdegWDFuWd61Ymhwm54GjtNK | support@mydatabase.to
When I checked there are lot of bitcoin abuse reports for this bitcoin address and the email associated with it.
What are the measures and steps I can take to prevent this from happening again?