To restart MySQL on a DigitalOcean droplet, follow these steps:
- SSH into your droplet using your preferred SSH client.
- Once you are logged in to your droplet, run the following command to restart MySQL:
sudo systemctl restart mysql
- Wait for MySQL to restart completely. You can monitor the progress using the SSH client or by checking the website hosted on your droplet.
That’s it! MySQL on your DigitalOcean droplet has been restarted.